Re: Running a Perl program countinuously

2002-11-20 Thread Christopher G Tantalo
Octavian Rasnita wrote: > Thank you. > > Please tell me how can I verify if the process is running. > > Teddy, sorry, was OOO yesterday so i didnt get this, but zentara beat me to the punch :) Basically just scanned the system processes for my process. If it was not running, I would restart it.

Re: Running a Perl program countinuously

2002-11-19 Thread drieux
On Tuesday, Nov 19, 2002, at 05:21 US/Pacific, zentara wrote: [..] This method actually scans ps for the process name, but there are other methods possible, like finding apache's pid and storing it to a file, then checking for the existence of the pid, instead of the name. [..] Normally one sho

Re: Running a Perl program countinuously

2002-11-19 Thread zentara
On Mon, 18 Nov 2002 20:01:42 +0200, [EMAIL PROTECTED] (Octavian Rasnita) wrote: >Thank you. > >Please tell me how can I verify if the process is running. Hi here is a script I've been experimenting with. It only reports whether the process is running or not, in this case apache. You can easily pu

Re: Running a Perl program countinuously

2002-11-18 Thread Octavian Rasnita
TED]> 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 progr

Re: Running a Perl program countinuously

2002-11-18 Thread Octavian Rasnita
EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, November 18, 2002 11:06 AM Subject: Re: Running a Perl program countinuously -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Running a Perl program countinuously

2002-11-18 Thread Octavian Rasnita
TECTED]> To: "beginners-cgi" <[EMAIL PROTECTED]> Sent: Monday, November 18, 2002 5:09 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?

Re: Running a Perl program countinuously

2002-11-18 Thread Christopher G Tantalo
"J. Alejandro Ceballos Z." wrote: > Octavian Rasnita wrote: > > >Hi all, > > > >I want to make a Perl program that runs permanently without stopping. > >How can I do this? > > > > > > > via shell loop> > > while true > do > the program > done that will spawn a new process off every iteratio

Re: Running a Perl program countinuously

2002-11-18 Thread J. Alejandro Ceballos Z.
Octavian Rasnita wrote: Hi all, I want to make a Perl program that runs permanently without stopping. How can I do this? via shell loop> while true do the program done -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Running a Perl program countinuously

2002-11-18 Thread Christopher G Tantalo
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 automa

Re: Running a Perl program countinuously

2002-11-18 Thread Mat Harris
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 & >

Re: Running a Perl program countinuously

2002-11-16 Thread Randal L. Schwartz
> "Octavian" == Octavian Rasnita <[EMAIL PROTECTED]> writes: Octavian> How can I make it to start automaticly after stopping? while true do perl-command-goes-here done & But why are you asking this in a CGI list? This has nothing to do with CGI. -- Randal L. Schwartz - Stonehenge Consulti

Re: Running a Perl program countinuously

2002-11-16 Thread Wiggins d'Anconia
Restarting automatically I would think wouldn't be possible without some outside source checking for whether it is running (for instance crond like you mention). Generally with a daemon process you would right a lock file or pid file, then have cron check for the pid file, read the pid out of

Running a Perl program countinuously

2002-11-16 Thread Octavian Rasnita
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 automati