crontable OR conditions

Posted by matt on Super User See other posts from Super User or by matt
Published on 2012-09-06T15:34:52Z Indexed on 2012/09/06 15:40 UTC
Read the original article Hit count: 150

Filed under:

Crontable parameters seem to function as 'ands' conditions. So the example

0 9-5 * * 1-5

Runs when the conditions are met "minute is zero AND hour is between 9 and 5 AND day is between monday and friday".

What I'd like is an 'or' function, so I can say "run monday to friday OR the 8th day of the month". Does such a thing exist?

I realise you could add two entries, but with lots of entries it adds something to forget.

© Super User or respective owner

Related posts about cron