[Eug-lug] crontab - last day of month
Matthew Jarvis
mattj at bikefriday.com
Mon Nov 20 13:11:29 PST 2006
Bob Miller wrote:
> Matthew Jarvis wrote:
>
>
>>One suggestion was to run it for 28, 29, 30, 31 and then determine some
>>other way if it's really the last day of the month...
>
>
> That's not a bad idea.
>
> 0 1 28-31 * * [ "`date +%m`" != "`date +%m --date=tomorrow`" ] && run-end-of-month-job
>
Hey - that looks like the ticket...
And even my feeble brain can figure out what it's doing....
Thanks kbob!
Matthew S. Jarvis
IT Manager
Bike Friday - "Performance that Packs."
www.bikefriday.com
541/687-0487 x140
mattj at bikefriday.com
More information about the EUGLUG
mailing list