One solution comes to mind.
Write a script that launches the critical script, and does something when it is no longer running.
#!/usr/bin/perl -w use strict; print "script started!\n"; my $result = system "critical.pl"; # if it comes here, then the script has died. print "critical.pl is no longer running. (Exit code $result)\n"; #perhaps add code to send a mail to your address
In reply to Re: Check if a process is running on Windows
by Caron
in thread Check if a process is running on Windows
by davidj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |