What is it you're trying to do? From what I can see, you're saying:
If the command "exec /bin/sh -c $cmd" throws an error, send the result
of the command to stdout.
Rob Seeger
Nathaniel Haggard wrote on 3/3/2005, 2:19 PM:
> Running the following code in a normal tcl shell on the command line
> puts nothing in stderr (or error) and the catch is not true. When the
> same code is run in an adp via aolserver it is successful.
>
> if { [catch { exec /bin/sh -c $cmd } error] } {
> puts $error
> }
>
> What could be causing this?
>
> Nate
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.