Octavian Rasnita wrote:

> Hi all,
>
> I want to make a Perl program that runs permanently without stopping.
> How can I do this?
>
> I could run the program from shell using:
>
> nohup perl script.pl &
>
> ..... but if for some unknown reasons the process will be stopped, it won't
> restart automaticly.
>
> How can I make it to start automaticly after stopping?
>
> If I will use a cron job, how can I verify if the process is running, to
> decide if I need to start it or not on ... lets say each hour?
>
> Thank you.
>
> Teddy,

hmmm, you could have another script that checks to see if the process is
running, and if it is not, restart it.  You could stick this check program in a
cron to run every hour.  If someone has a different idea, I would also like to
know.  The above is what I do now.
chris
--
-------------------------------
Just Your Friendly Neighborhood
_SPIDEY_


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to