|
You should also take care to set the exit code properly from the script, so that the shell script which collects these can examine it.
I guess something like if OUT_STATUS is "Success" exit 0, otherwise some higher number (0 means success).
You are in control of the first shell script (and if not, create a wrapper script which you are in control of), so simply make it return success (zero) under the conditions when the second and third scripts can be run, and non-zero if not.
Last edited by era; 03-18-2008 at 08:28 AM..
Reason: Answer to most recent question, too
|