Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Check if a process is running on Windows

by Caron (Friar)
on Jun 13, 2004 at 21:44 UTC ( #366351=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://366351]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-08-14 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?