<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I need to run Squeak in<font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"> headless mode on Mac OS X. As far as I know, this is the way to do it.</span></font><div><br></div><div>1) Open a Terminal window.</div><div><br></div><div>2) Create a symbolic link by entering</div><div>&nbsp;&nbsp; &nbsp;ln -s "$SQUEAK_VM_DIR/Squeak{version}.app/Contents/MacOS/Squeak VM Opt" squeak</div><div><br></div><div>3)&nbsp;<font class="Apple-style-span" color="#000000">Create a text file with a ".st" file extension and add a sequence of Smalltalk statements in it.</font></div><div><br></div><div><font class="Apple-style-span" color="#000000">4) Enter the following:</font><code><font class="Apple-style-span" color="#000000" face="Arial" size="4"><span class="Apple-style-span" style="background-color: transparent; font-size: 14px; "></span></font></code></div><div><code><font class="Apple-style-span" color="#000000" face="Arial" size="4"><span class="Apple-style-span" style="background-color: transparent; font-size: 14px; ">&nbsp;&nbsp; &nbsp;squeak -headless $SQUEAK_IMAGE {filename}.st</span></font></code></div><div><br></div><div>When I do this, I don't get any errors, but it just hangs. Here's what I have in the .st file I'm running ... pretty simple.</div><div><br></div><div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><div>fs := FileStream newFileNamed: 'cmdline.txt'.</div><div>fs nextPutAll: 'line 1'; cr.</div><div>fs nextPutAll: 'line 2'.</div><div>fs.close</div><div><br></div><div>Any idea why it doesn't exit? Maybe I need to do something more at the end of the .st file.</div><div><br></div><div>Maybe it's related to this. If I run "squeak $SQUEAK_IMAGE", it tries to start the Squeak UI, but I get an Information dialog that says "Squeak cannot locate the sources file named /Users.Mark/SqueakV39.sources". I copied the .sources file to my home directory and ran it again. This time the UI came up, but it doesn't respond to mouse clicks.</div><div><br></div>---</span></font></div><div><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;">Mark Volkmann</span></font></div><div><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><br class="webkit-block-placeholder"></span></font></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"> </div><br></div></body></html>