Date: Mon, 8 Jun 2009 18:32:31 -0400 From: Mike Jeays <mike.jeays@rogers.com> To: freebsd-questions@freebsd.org Subject: Re: Cronjob Message-ID: <200906081832.31564.mike.jeays@rogers.com> In-Reply-To: <4A2D5EDF.2000508@webrz.net> References: <20090608183045.F1B08BED8@kev.msw.wpafb.af.mil> <4A2D5EDF.2000508@webrz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
-- 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906081832.31564.mike.jeays>