Perhaps this is the problem?<br>When I ran this in a worksheet:<br>a _ OSProcess thisOSProcess stdOut.<br>Transcript show: a <br><br>show: returned "nil"<br>So nextPutAll: has no where to print to?<br><br>So my next question is how do I find the systems STDOUT pid?
<br><br>Thanks,<br>Tom K<br><br><div><span class="gmail_quote">On 7/19/06, <b class="gmail_sendername">David T. Lewis</b> <<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Jul 18, 2006 at 11:19:56AM -0700, Thomas J Keller wrote:<br>> Greetings,<br>> I copied this simple example from the Beginners page:<br>> OSProcess thisOSProcess stdOut nextPutAll: 'Hello World'<br>><br>
> Before running it, I did install the OSProcess OSProcess Pluggin<br>> packages.<br>><br>> But I get an MessageNotUnderstood error browser. But I can't seem to<br>> figure out why stdOut is not understanding nextPutAll:
<br><br>Hi Tom,<br><br>OSProcess does not work on all platforms. If you are using Linux (or<br>Mac OS/X with the less common Unix VM), the example should work. But<br>if you are using Windows, it would not work unless you build your own
<br>custom VM and plugins (not what you had in mind, I'm sure).<br><br>Almost everything in Squeak works identically on all platforms, but<br>OSProcess is an exception to this rule. It is intended to provide<br>platform-specific extensions, and it works differently (or not at
<br>all) on different platforms.<br><br>As for troubleshooting, try playing around with the Squeak debugger.<br>When you saw the "MessageNotUnderstood browser", you were seeing<br>the debugger. Open in up and explore a little, and you'll be able
<br>learn a lot about problems like this one. You can also open a debugger<br>right away and use it to step slowly through a problem to see where<br>it goes wrong. For you example, try evaluating this in your workspace:<br>
<br> self halt.<br> OSProcess thisOSProcess stdOut nextPutAll: 'hello world'<br><br>Hope this helps a little,<br>Dave<br><br><br>_______________________________________________<br>Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundation.org">
Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br></blockquote></div><br><br clear="all">
<br>-- <br>Tom<br>"Ecrasez l'Infame!" -- Voltaire