From owner-freebsd-questions@FreeBSD.ORG Tue Jan 3 02:28:28 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0F6916A41F for ; Tue, 3 Jan 2006 02:28:28 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id D536E43D49 for ; Tue, 3 Jan 2006 02:28:27 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from alpha.home (ppp224-76.lns2.adl4.internode.on.net [203.122.224.76]) by smtp3.adl2.internode.on.net (8.12.9/8.12.6) with ESMTP id k032S7Oi038564; Tue, 3 Jan 2006 12:58:08 +1030 (CST) (envelope-from malcolm.kay@internode.on.net) From: Malcolm Kay Organization: at home To: freebsd-questions@freebsd.org Date: Tue, 3 Jan 2006 12:58:02 +1030 User-Agent: KMail/1.8 References: <43B960E3.9050408@ccstores.com> In-Reply-To: <43B960E3.9050408@ccstores.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601031258.02412.malcolm.kay@internode.on.net> Cc: Subject: Re: specifying a day for at command 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: Tue, 03 Jan 2006 02:28:28 -0000 On Tue, 3 Jan 2006 03:50 am, Jim Pazarena wrote: > I want to run a job every 00:05 sunday morning. > It is a script which run for a few minutes, then > attempts to re-submit itself via at. > at the end of the script, it has: > echo "/usr/local/bin/script" | at 00:05 sunday > this produces an error message: > at:trying to travel back in time > > yes, cron could do it, but I would like to run it > with at. on my old unix OS (SCO) I could enter > at 00:05 next sunday, which would work. > > trying: at 00:05 + 7 days (on sunday at approx 00:10) > gets queued for next Monday. > 7 days from 0:10 on Sunday is 0:10 on the next Sunday -- then look forward to 0:05 and that is on Monday. So: at 00:05 + 7 days should work. But you can also specify a particular date. Malcolm