[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] cron entry that runs the 2nd saturday of every month



On Fri, 2011-08-26 at 16:47 -0400, Erik Mathis wrote: 
> I ran into this same issue, and iirc cron uses a AND to compare dates.
> I ended up running it every Monday and added a wrapper to the script
> to decide if its the right day to do this function. If not, just exit.

No, there's a gotcha in there.  It uses "AND" to compare time and then
only one of two particular fields (day of month or day of week) have to
be true, so that's an OR.  That's a PITA.