From owner-freebsd-questions Mon Nov 5 7:34:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 1FB7137B405 for ; Mon, 5 Nov 2001 07:34:09 -0800 (PST) Received: from [212.238.77.116] (helo=buffy.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 160llH-00061i-00 for freebsd-questions@freebsd.org; Mon, 05 Nov 2001 15:34:07 +0000 Received: by tanya.raggedclown.net (Ragged Clown Mailhost, from userid 500) id 2D1BC11F6; Mon, 5 Nov 2001 16:33:50 +0100 (CET) Date: Mon, 5 Nov 2001 16:33:50 +0100 From: Cliff Sarginson To: freebsd-questions@freebsd.org Subject: Re: A cron job to run every 4 weeks Message-ID: <20011105163350.A4161@raggedclown.net> References: <512fe501a6.501a6512fe@mbox.com.au> <3.0.5.32.20011105075659.01006480@mail.sage-american.com> <008201c16607$1e2f5ff0$fa01a8c0@ABERRATION> <20011105161130.C3639@raggedclown.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.16i In-Reply-To: <20011105161130.C3639@raggedclown.net>; from cliff@raggedclown.net on Mon, Nov 05, 2001 at 04:11:30PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Nov 05, 2001 at 04:11:30PM +0100, Cliff Sarginson wrote: > Hello, > > Use "at". > Write the script to do the job you require. > Using "at" set it to run for the first occasion. > As the last statement in the script call "at" again > with a time specification of > "now + 28 days" > Actually you want the new call to "at" as the first line of the script, not the last. Otherwise it will run increasingly later on the day in question ! So if the script takes 10 minutes to run it will run 10 minutes later each time..if you see what I mean. > -- > Regards > Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message