From owner-freebsd-questions@FreeBSD.ORG Thu Nov 1 02:43: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 CEAC216A468 for ; Thu, 1 Nov 2007 02:43:38 +0000 (UTC) (envelope-from elrap@web.de) Received: from fmmailgate02.web.de (fmmailgate02.web.de [217.72.192.227]) by mx1.freebsd.org (Postfix) with ESMTP id 91A6713C4A8 for ; Thu, 1 Nov 2007 02:43:38 +0000 (UTC) (envelope-from elrap@web.de) Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id 1FAA0AA12E70 for ; Thu, 1 Nov 2007 03:43:07 +0100 (CET) Received: from [84.152.174.226] (helo=noname) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #208) id 1InQ1S-0005ld-00 for freebsd-questions@freebsd.org; Thu, 01 Nov 2007 03:43:07 +0100 From: Tino Engel Organization: Galileo Group AG To: freebsd-questions@freebsd.org Date: Thu, 1 Nov 2007 03:43:05 +0000 User-Agent: KMail/1.9.4 References: <2cd0a0da0710310132r32dbb664m7caa540195fff01e@mail.gmail.com> In-Reply-To: <2cd0a0da0710310132r32dbb664m7caa540195fff01e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1592713.UQDpR62Joh"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200711010343.10900.elrap@web.de> Sender: elrap@web.de X-Sender: elrap@web.de X-Provags-ID: V01U2FsdGVkX1/Bny5TufWLFhot9/ME66cUYFQbBX/8B7ioyYaG chxcEe2yGvtSzvBGCvmRvb6zbP6+c6UoK4g5ud8NWb2JCeN4TA 2CNtSvSbY= Subject: Re: Help Plz... Cron Job question....hellp... 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: Thu, 01 Nov 2007 02:43:38 -0000 --nextPart1592713.UQDpR62Joh Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=85. > > > > I am running a status script written in Perl (*status.pl*) and want to ha= ve > 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=85 > > > > With a bundle of thanks! --nextPart1592713.UQDpR62Joh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBHKUtO4xizT/jJ1lERAjQKAJ49FoCZNfwCR04B7FCvu89tjC1uMgCdHsuc xIvQKNV0Vyk8wwlW8MuDqhA= =m/Qk -----END PGP SIGNATURE----- --nextPart1592713.UQDpR62Joh--