Thank you.

Please tell me how can I verify if the process is running.


Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]

----- Original Message -----
From: "Christopher G Tantalo" <[EMAIL PROTECTED]>
To: "Octavian Rasnita" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 2:44 PM
Subject: Re: Running a Perl program countinuously


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