On 23 Nov 2011, at 12:39, t olschewski wrote:
> what do you think about modifiying the wrapper script pharo.sh (OneClick
> edition) slightly in order to alleviate scripting:
>
> a) pharo.sh: passing "$@" over to pharo:
>
> ...
> exec "$BASE/pharo" \
> ...
> ...
> "$ROOT/Contents/Resources/pharo.image" \
> "$@"
Yes, that might be useful.
> b) making a second script, pharo-headless.sh:
>
> ...
> exec "$BASE/pharo" \
> -headless \
> ...
> ...
> "$ROOT/Contents/Resources/pharo.image" \
> "$@"
>
> Test:
>
> pharo-headless anyScript.st
Again, useful indeed.
But the question remains if the one-click needs this: once you are working at that level, I would consider you an advanced user combining its own images and vm's.
BTW, I always use -vm-display-null and -vm-sound-null, because -headless does not always work, I am not sure what the preferred/official way is.
> And another Question:
>
> is there a better way of forcing "pharo -headless" to quit, better than
> writing "WorldState quitSession." in every script ?
To start a server, it is more handy that there is no automatic quit.
But for simple scripting thus is annoying, yes,
Sven