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

Re: Automatically restarting process

by krujos (Curate)
on Jul 25, 2002 at 15:52 UTC ( #185233=note: print w/ replies, xml ) Need Help??


in reply to Automatically restarting process

You can launch the bot and watch the process or the connection (I am not sure if you mean the whole process dies, or just becomes disconnected). In your loop look to see if the process is still active, if he is not turn him back on.
something like

launch bot while (1) if [ bot not connected, alive or whatever] restart, reconnect or whatever... end while
Depending on the exact implementation and platform this may be rolled up for you in a module.
good luck


Comment on Re: Automatically restarting process
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-07-29 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls