#StackBounty: #cron CRON with AND relationship between mday and wday

Bounty: 50

I have seen this question which indicates that the relationship between the wday and mday fields of a CRON schedule is an OR relationship. Say for example I want to schedule something for every Friday the 13th.

Rather than the expected result, the CRON

0 0 13 * 5

will give me all Fridays of every month, as well as every 13th of every month.

Is there any way to avoid this behavior and specify an AND relationship? (There seems to be mention of older versions using an AND relationship, however I would prefer to use a single tool with the ability to do both)

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.