[squeak-dev] running headless

Mark Volkmann mark at ociweb.com
Sat Oct 25 00:39:59 UTC 2008


On Oct 22, 2008, at 10:47 PM, David T. Lewis wrote:

> On Sun, Oct 19, 2008 at 02:06:29PM -0500, Mark Volkmann wrote:
>
>> I've been struggling for weeks to get anything to work with -headless
>> on both Mac OS X and Windows. Based on the lack of replies to my
>> questions on this it seems fair to conclude that this feature isn't
>> used by most Squeak developers. Is that the case?
>> I'd love to see a simple example of a .st file that can be used  
>> with -
>> headless. More than anything I'd love to get some confirmation that -
>> headless actually works for somebody.
>
> The "-headless" option definitely works for the unix VM. I don't know
> about OS X or Windows.
>
> If you are trying to get a start script working, start by getting it
> to work with the normal Squeak UI. After you have this working, add
> the "-headless" option to make the UI go away.
>
> If you are having trouble getting the script file to run, try using
> a fully qualified path name:
>
> $ squeak myimage.image /path/to/my/script.st

Thanks! That fixed it for me! Apparently it doesn't just look in the  
current directory if you only specify a file name without a path. It  
seems like it should default to looking in the current directory.

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.

---
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/20081024/a8d1299a/smime.bin


More information about the Squeak-dev mailing list