Help Plz... Cron Job question....hellp...
Michaël Grünewald
michaelgrunewald at yahoo.fr
Wed Oct 31 09:18:50 PDT 2007
VeeJay <maanjee at gmail.com> 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
More information about the freebsd-questions
mailing list