<br><br><div class="gmail_quote">On Sun, Sep 26, 2010 at 7:13 PM, Levente Uzonyi <span dir="ltr">&lt;<a href="mailto:leves@elte.hu">leves@elte.hu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, 26 Sep 2010, Eliot Miranda wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Chris,<br>
<br>
   I have code for this, but right now I need to crack some crabs, so I<br>
don&#39;t have time to verify this code in 4.1 :)  Use at your own risk ;)  The<br>
most important thing is the StandardFileStream&gt;&gt;stdioHandles primitive for<br>
accessing the streams.  N.B. some work needs to be done on the win32<br>
FilePlugin support code before this will work on Windows.<br>
</blockquote>
<br></div>
All three streams seem to be working on Windows Vista with the latest CogVM.<br>
This seems to be a really cool feature, though I think CrLfFileStream should be deprecated, so MultiByteFileStream support would be better IMO.<br></blockquote><div><br></div><div>Forgive me.  I was unaware of the subtleties when I wrote the code.  The important thing is the remembering of the three streams so that multiple clients that e.g. write to stdout will end up writing to a singe stdout stream, not multiple independent streams on stdout.  Feel free to fix my stream usage.</div>
<div><br></div><div>cheers</div><div>Eliot</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888">
<br>
<br>
Levente</font><div><div></div><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On Sun, Sep 26, 2010 at 2:46 PM, Chris Muller &lt;<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am developing a simple &quot;CommandLineProcessor&quot; facade for easily<br>
transferring command-line arguments simply as block-arguments, so you<br>
can write smalltalk scripts in vi:<br>
<br>
 CommandLineProcessor do: [ : arg1 : arg2 : arg3 | &quot;args come in as<br>
Strings&quot; ... ]<br>
<br>
and also for directing Notifications and Warnings messages to stdOut,<br>
and Errors to stdErr.  It relies on OSProcess to write to stdOut and<br>
stdErr for this.  However, ever since switching to Cog, writing to<br>
these streams does not seem to redirect out to Linux..<br>
<br>
I don&#39;t know whether writing to these streams makes me<br>
Linux-dependent, but it really is nice to be able to write Linux<br>
scripts that employ Squeak in the back-end, but operate normally like<br>
other shell programs in the terminal window and with redirecting<br>
output, etc.<br>
<br>
 - Chris<br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>