# 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.
In reply to Re: How to monitor/look for output?
by ikegami
in thread How to monitor/look for output?
by scottdware
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |