Frontier.sysunishellcommand [was Re: Announce: Frontier 8.0b46]

Michel Benevento beno at xs4all.nl
Tue Jan 15 15:02:30 PST 2002


Fantastic! This is exactly what I need, thanks a lot.

Brent, perhaps this should be included in the script, maybe an argument/
preference... 

sys.unixShellCommand (s, stderr=user.prefs.stderr)

where stderr can be "stdout" (default), a string address, ...a script address?

..or at least be included in the docs.

Anyway, you made my day, Sam.

>Try redirecting stderr to stdout, by adding
>   2>&1
>to the end of your shell command string. Then you
>should be able to parse/display the result (error
>message or otherwise).
>(That's the proper notation in sh and ksh; I'm not sure
>what the equivalent is in csh, and I don't know which
>is used in this case.)
>
>It'd be even better if stderr was returned separately
>by Frontier, but then the call would have to accept
>an error-storage address for you to check. (I have
>no idea whether it actually does.) Then you wouldn't
>have to try to figure out from the result whether
>there was an error or not.
>
>HTH.
>
>- Sam






More information about the Frontier-Users mailing list