[squeak-dev] running headless
Mark Volkmann
mark at ociweb.com
Sat Oct 25 16:32:58 UTC 2008
On Oct 24, 2008, at 8:36 PM, David T. Lewis wrote:
> On Fri, Oct 24, 2008 at 07:39:59PM -0500, Mark Volkmann wrote:
>>
>> So my script runs now, but even with -headless it displays the Squeak
>> splash screen and the VM never exits. I have to manually kill the
>> process. Is there something I should do at the end of my script to
>> make it exit? It seems like with -headless it should always exit when
>> it reaches the end of the script.
>
> Just add this to the end of your script:
> SmalltalkImage current snapshot: false andQuit: true.
That does a lot of stuff! However, one thing it didn't do for me ...
under Windows ... is quit.
> Or, if you want more of a brute force exit, you can use this:
> SmalltalkImage current quitPrimitive.
This does work though!
> While you are at it, take a few minutes to read the
> #snapshot:andQuit:embedded
> method. This is where the magic occurs that permits you to save an
> image and restart it exactly where you left off. Interesting and well
> worth reading.
Thanks!
---
Mark Volkmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5706 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20081025/678407d6/smime.bin
More information about the Squeak-dev
mailing list
|