in reply to How to monitor/look for output?
# special.pl my $success = 1; ... if (...) { $success = 0; } ... exit $success ? 0 : 1;
Then all you need is
perl special.pl && perl backup.pl
Note that if special.pl dies for any reason, the exit code will be set to something nonzero, so even unexpected failures will also prevent backup.pl from executing.
|
|---|