Thanks, that's just want I wanted. And thanks Sean for the tip on the <a href="http://forum.world.st/">http://forum.world.st/</a> index. That's pretty handy having all the lists together in one spot.<div><br></div>
<div><div><br></div><div>Mike</div><div><br clear="all">Mike Hales<br>Engineering Manager<br>KnowledgeScape<br><a href="http://www.kscape.com">www.kscape.com</a><br>
<br><br><div class="gmail_quote">On Fri, Nov 19, 2010 at 10:37 AM, Casimiro de Almeida Barreto <span dir="ltr"><<a href="mailto:casimiro.barreto@gmail.com">casimiro.barreto@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div text="#000000" bgcolor="#ffffff">
Em 19-11-2010 15:22, Casimiro de Almeida Barreto escreveu:
<div class="im"><blockquote type="cite">
Em 19-11-2010 15:00, Mike Hales escreveu:
<blockquote type="cite">I must be missing something obvious, but how can I
get the results of executing an external command.
<div><br>
</div>
<div>OSProcess command: 'ls /etc'</div>
</blockquote>
Try:<br>
<br>
| pc1 |<br>
<br>
pc1 := (PipeableOSProcess command: 'ls -l' ) output.<br>
<br>
Transcript show: pc1. <br>
</blockquote></div>
Oooopsss... error:<br>
<br>
Transcript show: pc1 upToEnd.<br>
<br>
Or else:<br>
<br>
Transcript show: (PipeableOSProcess command: 'ls -l') upToEnd;
cr.<div class="im"><br>
<blockquote type="cite">
<blockquote type="cite">
<div><br>
</div>
<div>returns me an ExternalUnixProcess. I just want a string of
the command results. This seems to basic to be hard, but I'm
stumped. In VisualWorks and GemStone this is just a one liner.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
<pre><fieldset></fieldset>
</pre>
</blockquote>
<br>
</blockquote>
<br>
<br>
</div></div>
<br><br>
<br></blockquote></div><br></div></div>