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?
Sure. Every command has an exit status, which is zero on success and
nonzero on failure (some commands have a well documented assortment of
nonzero
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
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.
*