If you are doing this synchonously, as in the processes are not
backgrounded, then most shells have a shell variable that evaluates
to the return code from the last separate command executed.
Try $? in bash, zsh, ksh, and perl.
If it is backgrounded, then this requires more advanced scripting to
get at.
On Thu, Jan 20, 2000 at 12:23:09PM -0700, SoloCDM wrote:
> 1) Is it possible to effectively determine if a command executed
> successfully or failed? 2) If so, does it work on every command?
>
> Note: Detailed Documentation(s) and Sample(s) are more than welcome.
> When you reply to this message, please include
> the mailing list and my address.
>
> *********************************************************************
> Signed,
> SoloCDM
>
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
>
--
J. Scott Kasten
jsk AT tetracon-eng DOT net
"That wasn't an attack. It was preemptive retaliation!"
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.