<div>Well, doing all the timing management in one place may aid synchronisation.</div>
<div>&nbsp;</div>
<div>In any case, I second Subbu&#39;s sentiments.<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/26/08, <b class="gmail_sendername">Ryan Zerby</b> &lt;<a href="mailto:tahognome@gmail.com">tahognome@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">I&#39;m a beginner myself, but I would think it would be better to have squeak running all the time and let is handle the cron timing, and connecting to the database (kind of like a service of it&#39;s own). I would think this would be easier to debug and maintain as well as being more within the paradigm of squeak. 
<div><br>&nbsp;</div>
<div>Better still would be if we got SqueakOS to the point where Squeak noobs like myself could use it in place of Windows :)<br><br>
<div class="gmail_quote"><span class="q">On Fri, Sep 26, 2008 at 10:33 AM, Mark Volkmann <span dir="ltr">&lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mark@ociweb.com" target="_blank">mark@ociweb.com</a>&gt;</span> wrote:<br>
</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div><span class="q">On Sep 26, 2008, at 9:29 AM, Bert Freudenberg wrote:<br><br></span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span class="q">Am 26.09.2008 um 06:49 schrieb Mark Volkmann:<br><br></span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span class="q">On Sep 26, 2008, at 8:03 AM, Randal L. Schwartz wrote:<br><br></span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span class="q">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&quot;Randal&quot; == Randal L Schwartz &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:merlyn@stonehenge.com" target="_blank">merlyn@stonehenge.com</a>&gt; writes:<br>
</blockquote></blockquote></blockquote></blockquote></blockquote><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&quot;Bert&quot; == Bert Freudenberg &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt; writes:<br>
</blockquote></blockquote></blockquote></blockquote></blockquote>Bert&gt; Am 26.09.2008 um 05:12 schrieb Mark Volkmann:<br><br></span><span class="q">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Is it possible to run a Squeak program from a terminal window and &nbsp;have<br>access to the stdin and stdout streams from the Smalltalk code?<br>
</blockquote></blockquote></blockquote><br></span><span class="q">And the longer still answer (now that I&#39;ve noticed &quot;access to stdin and<br>stdout&quot;) is to use an image with OSProcess loaded, and then you can<br>
get access as follows:<br><br>me := ThisOSProcess thisOSProcess.<br>stdin := me stdIn. &quot;acts like a Stream&quot;<br>stdout := me stdOut.<br>stderr := me stdErr.<br>stderr print: Time now; cr. &quot;put the time of day on my stderr output&quot;<br>
</span></blockquote><span class="q"><br><br>Thanks for the example code! Now I think all I need is to find out how to launch the code from a terminal window. At <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wiki.squeak.org/squeak/1914" target="_blank">http://wiki.squeak.org/squeak/1914</a>&nbsp;I found this.<br>
<br>&quot;To initiate external shell processing, evaluate &#39;&#39;ExternalCommandShell stop&#39;&#39;, save the image, and restart with &#39;&#39;squeak -headless myImage&#39;&#39;.&quot;<br><br>It&#39;s not clear to me what will be run when that last command is executed from a terminal window. Where would I put code like your example code above and how does the squeak command know to execute it?<br>
</span></blockquote><span class="q"><br>Perhaps you should let us know what you want to achieve in broader terms first. Using Squeak in a headless way to do unix-style stream processing is very unusual. It can be done but it is not something I would recommend to a beginner.<br>
<br>This is in contrast to many other languages which are most easily learned by creating simple programs writing to stdin/stdout. The power of Squeak is in the system (the development tools and frameworks), not so much the language (which is powerful, too, but not really what sets Squeak apart).<br>
</span></blockquote><br><br>&nbsp;</div></div><span class="q">I&#39;m really trying to learn about all aspects of Squeak, but at the moment I have a task where I need to query a relational database and output an XML representation of a subset of the data. This needs to be invoked from a cron job, so if I can run my Smalltalk code from a terminal window then I&#39;ll be set. I know I could do this using many other languages such as Java or Ruby. However, since I&#39;m trying to learn Smalltalk and Squeak at the moment, I thought I&#39;d use those as part of the learning process.<br>
<br>---<br><font color="#888888">Mark Volkmann</font></span> 
<div>
<div></div>
<div><br><br><br><br><br>_______________________________________________<span class="q"><br>Beginners mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br></span></div>
</div></blockquote></div><br>&nbsp;</div></div><br>_______________________________________________<br>Beginners mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br><br></blockquote>
</div><br>