From owner-freebsd-questions@FreeBSD.ORG Mon Jun 8 22:32:34 2009 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 EBB531065672 for ; Mon, 8 Jun 2009 22:32:34 +0000 (UTC) (envelope-from mike.jeays@rogers.com) Received: from smtp108.rog.mail.re2.yahoo.com (smtp108.rog.mail.re2.yahoo.com [68.142.225.206]) by mx1.freebsd.org (Postfix) with SMTP id 971C58FC14 for ; Mon, 8 Jun 2009 22:32:34 +0000 (UTC) (envelope-from mike.jeays@rogers.com) Received: (qmail 61847 invoked from network); 8 Jun 2009 22:32:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=5DZMQ4iWZM7T00ZE6j2mmwUWKLf1KRGh9ZCSJfkdQs1SDNRuZri84/fiNUKjxsTTsJZd2De9QMZ8BdmhRYoW8Se7MZp9x35mTZylWKmGkm1oXQ5xf2pr6RzxhHPJcQmO28F50DFy08KGHwoVMrGWzi4lwBekw4u7+hB3ADiHkpE= ; Received: from unknown (HELO napoleon.localnet) (mike.jeays@99.224.61.141 with plain) by smtp108.rog.mail.re2.yahoo.com with SMTP; 8 Jun 2009 22:32:33 -0000 X-YMail-OSG: uXzruSYVM1kh8wSrc8FdpIu6CAooKtiPnMXuS1O3SOF3RZ13bYHgpjpdiUlzpBpeaQ-- X-Yahoo-Newman-Property: ymail-3 From: Mike Jeays To: freebsd-questions@freebsd.org Date: Mon, 8 Jun 2009 18:32:31 -0400 User-Agent: KMail/1.10.4 (Linux/2.6.27-14-generic; KDE/4.1.4; i686; ; ) References: <20090608183045.F1B08BED8@kev.msw.wpafb.af.mil> <4A2D5EDF.2000508@webrz.net> In-Reply-To: <4A2D5EDF.2000508@webrz.net> MIME-Version: 1.0 Message-Id: <200906081832.31564.mike.jeays@rogers.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Cronjob 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: Mon, 08 Jun 2009 22:32:35 -0000 -- Mike Jeays http://www.jeays.ca http://www.rotarycpmm.ca On June 8, 2009 02:56:31 pm Jos Chrispijn wrote: > Found another solution (for running @ 23:58): > > 58 23 * * * [ `date -d tomorrow +%d` -eq '01' ] && /myscript > > thanks for all other suggestions, > Jos Chrispijn > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Isn't that a linuxism? Looking at the man pages for the date command for FreeBSD, it looks as if 'date -v+1d' will return tomorrow's date (and it does, I checked). The -d option is to do with daylight saving time.