in reply to batch query - win32
Something I've done in the past (admittedly for cron jobs but could still be applied here) is have each script set a fail flag (a zero byte size file for example) that would tell the next script to exit without running.
In script2.pl:
if ($you_do_not_want_script3_to_run) { # create zero byte size file... open(FAILFLAG, ">/tmp/script2.failflag") || do { # handle the error here }; close (FAILFLAG); }
Then in script3.pl:
my $script2_failflag = "/tmp/script2.failflag"; if (-e $script2_failflag) { # script3.pl should not contine any further exit(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: batch query - win32
by etcshadow (Priest) on Nov 05, 2003 at 04:51 UTC | |
by vek (Prior) on Nov 05, 2003 at 17:07 UTC |