Help Plz... Cron Job question....hellp...

2007-10-31 Thread VeeJay
Hello Gurus….



I am running a status script written in Perl (*status.pl*) and want to have
it *Always Running*.



How can I check through CRON that status.pl is running and if NO, then
start the script execution again?



Please help and advise…



With a bundle of thanks!


-- 
Thanks!

BR / vj
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help Plz... Cron Job question....hellp...

2007-10-31 Thread Michaël Grünewald
VeeJay [EMAIL PROTECTED] writes:

 Hello Gurus….



 I am running a status script written in Perl (*status.pl*) and want to have
 it *Always Running*.

 How can I check through CRON that status.pl is running and if NO, then
 start the script execution again?

Why don't you use the following SH script?

  whule true; do
perl status.pl
  done

It will restart `status.pl' whenever it dies.
-- 
Best wishes,
Michaël
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help Plz... Cron Job question....hellp...

2007-10-31 Thread Tino Engel
call a script called script.sh from cron e.g. every minute.
script.sh contains:

#!/bin/sh
ps -a | grep status.pl | |  perl status.pl

Am Mittwoch 31 Oktober 2007 08:32 schrieb VeeJay:
 Hello Gurus….



 I am running a status script written in Perl (*status.pl*) and want to have
 it *Always Running*.



 How can I check through CRON that status.pl is running and if NO, then
 start the script execution again?



 Please help and advise…



 With a bundle of thanks!


pgpFA51yluLwN.pgp
Description: PGP signature