Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2007 09:15:06 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        VeeJay <maanjee@gmail.com>
Cc:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Re: Help with Cron pleazzzzzzzzzzzz
Message-ID:  <20071031091506.78c86061.wmoran@potentialtech.com>
In-Reply-To: <2cd0a0da0710310458t49610b34h9b19366c3765fe0@mail.gmail.com>
References:  <2cd0a0da0710310458t49610b34h9b19366c3765fe0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to VeeJay <maanjee@gmail.com>:

> 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…

Have you considered something like daemontools?  It's designed for such
a task, as opposed to reinventing the wheel.

-- 
Bill Moran
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071031091506.78c86061.wmoran>