Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2007 03:43:05 +0000
From:      Tino Engel <elrap@web.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: Help Plz... Cron Job question....hellp...
Message-ID:  <200711010343.10900.elrap@web.de>
In-Reply-To: <2cd0a0da0710310132r32dbb664m7caa540195fff01e@mail.gmail.com>
References:  <2cd0a0da0710310132r32dbb664m7caa540195fff01e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



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