[squeak-dev] running headless
Bert Freudenberg
bert at freudenbergs.de
Sat Oct 25 09:07:24 UTC 2008
Am 25.10.2008 um 02:39 schrieb Mark Volkmann:
> It seems like with -headless it should always exit when it reaches
> the end of the script.
As was mentioned before the mechanism you are (ab-)using was never
meant to run unixy scripts. The ProjectLauncher which parses the
command line in a regular image is designed to, err, launch projects,
in the web browser plugin, that is (see the class comment on
AbstractLauncher).
You can of course customize your image to do anything on startup,
including quitting after reading a script, if a deprecated platform-
dependent argument like -headless was passed to the VM. That may not
be the brightest idea but if it gets the job done I have to admit
doing worse before ;)
- Bert -
More information about the Squeak-dev
mailing list
|