in reply to Check if a process is running on Windows
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 Section
Seekers of Perl Wisdom