Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2015-10-07 06:39 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (171 votes), past polls