horstTue Nov 21 21:26:43 PST 2006
> Date: Mon, 20 Nov 2006 13:11:29 -0800 > From: Matthew Jarvis <mattj at bikefriday.com> >> >> 0 1 28-31 * * [ "`date +%m`" != "`date +%m --date=tomorrow`" ] && >> run-end-of-month-job >> > > Hey - that looks like the ticket... Nice ! Two, more general, comments about scheduling cron jobs: a) cron jobs scheduled between 1 and 2 A.M. may not be portable to machines that are on daylight-saving-time; one month of the year they would run twice, half a year later may not run at all. I don't know if there is a chance this can happen at the end of the month, but, as said, it's a general consideration. b) cron jobs that come with packages (log analysis/rotation, backup,...) have the tendency to start at the hour, or 15/30/45 min. You don't want to interfere with those, or compete for resources. Secondly, if your cron job starts at 5:37, and some odd issues also start at 5:37 it's easier to pip-point trouble spots. In short, it pays off to schedule cron jobs wisely................Horst