if you have root access you could run it in inittab

On Sun, Nov 17, 2002 at 06:05:43 +0200, 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,
> Teddy's Center: http://teddy.fcc.ro/
> Email: [EMAIL PROTECTED]
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Mat Harris                      OpenGPG Public Key ID: C37D57D9
[EMAIL PROTECTED]        matthewh.genestate.com  

Attachment: msg06906/pgp00000.pgp
Description: PGP signature

Reply via email to