Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Self resurrecting perl scripts

by jwest (Friar)
on Apr 11, 2001 at 22:39 UTC ( [id://71802]=note: print w/replies, xml ) Need Help??


in reply to Self resurrecting perl scripts

Apart from the various Perl-based solutions, if you have or can get root access on the box that the script will be running on, you can use 'init', to automagically re-run the script for you should it ever exit.

This doesn't help with determining why it died in the first place, nor reacting appropriately based on the cause of death. init is fairly simple. If the runlevel is appropriate, and the process isn't running, respawn it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-24 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found