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.
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
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
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
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]
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?
"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
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]
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
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 &
>
> "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
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
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
13 matches
Mail list logo