Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Auto-restarting script if it dies

by naxxtor (Initiate)
on Mar 13, 2007 at 04:00 UTC ( #604474=note: print w/replies, xml ) Need Help??


in reply to Auto-restarting script if it dies

If you just need the script to restart if it exits (for whatever reason) then could you not write a very (very) simple shell script to wrap it? Something like:
while [ 1 ]; do ./myscript.pl done
and pop that into run.sh (or whatever), and use that to run the program. You could even run it as a background task from there... set and forget.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2021-01-26 18:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?