[Eug-lug] crontab - last day of month

Matthew Jarvis mattj at bikefriday.com
Mon Nov 20 11:47:52 PST 2006


It seems I stepped in some doodoo trying to accomplish this - hard to 
believe this is so hard...

How do I tell a cron job to run on the last day of the month?

i.e. Feb 28 (or 29 whatever), Apr 30, Mar 31....  I'm being so explicit 
because another group I posted this to just didn't grasp that I wanted 
the last day, rather than specifically telling it the 28th or something...

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...

Some say it can't be done... are they right?


-- 
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