[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] call shell commands; synchronous return

From: Stephen
Subject: Re: [Help-smalltalk] call shell commands; synchronous return
Date: Tue, 08 Apr 2008 23:49:05 +1200
User-agent: Thunderbird (Macintosh/20080213)

Paolo Bonzini wrote:
Smalltalk system: 'abc'



shellOut := Smalltalk system: 'sleep 5 && ls -l /etc && sleep 10'.
Transcript showCr: shellOut printString.

That worked a treat.

Is there anything one should be aware of when choosing between the two
ways of calling shell commands? The system: call above appeals since it
is synchronous and provides the shell output, but just wondering if
there is a situation when it is better to use the "Filestream popen:
dir" command.

And is there a way to get access to the standard error stream?

Thank you again


reply via email to

[Prev in Thread] Current Thread [Next in Thread]