From owner-freebsd-questions@FreeBSD.ORG Wed Oct 31 13:16:38 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28D3716A469 for ; Wed, 31 Oct 2007 13:16:38 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id EB58113C4B7 for ; Wed, 31 Oct 2007 13:16:37 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 4729EEBC3B; Wed, 31 Oct 2007 09:16:07 -0400 (EDT) Date: Wed, 31 Oct 2007 09:15:06 -0400 From: Bill Moran To: VeeJay Message-Id: <20071031091506.78c86061.wmoran@potentialtech.com> In-Reply-To: <2cd0a0da0710310458t49610b34h9b19366c3765fe0@mail.gmail.com> References: <2cd0a0da0710310458t49610b34h9b19366c3765fe0@mail.gmail.com> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: FreeBSD-Questions Subject: Re: Help with Cron pleazzzzzzzzzzzz X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 13:16:38 -0000 In response to 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… 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