Thanks for all your feedback. I've just uploaded a new version for mac
os x:
http://staff.dasdeck.de/valentin/xtras/shell/macosx/v02.sit

New in this mac version:
- no more external shell.bundle needed, just the xtra itself
- callback function _stdout for linewise retrieving of stdout. Usefull
for example for programms that give intermediary feedback (progress
status etc.) during their execution.

Unfortunately I couldn't find any way to separate the stout and stderr
streams on the mac (where the implementation is totally different from
the PC version).
But you can use the ">" operator to redirect the output:
- adding " 2>&1" to your command will redirect stderr to stdout and
return both to director (as function return value and as callback
value).
- adding " 2>&1 1>myfile" will redirect stderr to director and stdout to
file myfile.
For example. shell_cmd("curl -v myurl.com/myfile 2>&1 1>mypath/myfile")
will fetch a file with curl and show download status information at
stderr that is redirected to stdout so that you can catch it with the
_stdout callback.

Valentin


Troy Rollins wrote:
> On May 28, 2004, at 7:47 AM, Valentin Schmidt wrote:
>
>> I've updated the win version of the xtra yesterday, the new version
>> has callback functions for catching stdout and stderr output during
>> execution (see new readme and demo.exe/demo.dir).
>
> Outstanding. Can the same be accomplished with OSX?

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to