Cronjob

Mike Jeays mike.jeays at rogers.com
Mon Jun 8 22:32:35 UTC 2009


-- 
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at 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.


More information about the freebsd-questions mailing list