From owner-freebsd-questions@FreeBSD.ORG Tue Jan 3 06:56:03 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 BC2A016A41F for ; Tue, 3 Jan 2006 06:56:03 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AE8843D4C for ; Tue, 3 Jan 2006 06:56:02 +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 smtp1.adl2.internode.on.net (8.12.9/8.12.6) with ESMTP id k036trW0050551; Tue, 3 Jan 2006 17:25:53 +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 17:25:47 +1030 User-Agent: KMail/1.8 References: <43B960E3.9050408@ccstores.com> <200601031258.02412.malcolm.kay@internode.on.net> In-Reply-To: <200601031258.02412.malcolm.kay@internode.on.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601031725.47599.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 06:56:03 -0000 On Tue, 3 Jan 2006 12:58 pm, Malcolm Kay wrote: > 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 xxxxxxxxxxxxxxxxxx at 00:05 +6 days > should work. > But you can also specify a particular date. > > Malcolm