I need two very specific cron statements:
A cron entry that would run on the 2nd Monday of each month every 4 hours beginning at 02:00 and execute the file /opt/bin/cleanup.sh
A cron entry that would run at 18:15 on the 3rd day of every month ending in an "r" that executes /opt/bin/verrrrrrrry.sh
I've already tried various cron testers:
however none of them seem to be able to handle advanced cron expressions(or I do not know how to format the correct expression) as stated on
How can I check my cron statements? I obviously cannot wait for the actual event to pass so that the daemon may execute them.
Is there a good cron tester which supports advanced expressions? Or how to make the cron daemon parse the expression, or how to code these expressions?
What I have so far for these statements is:
0 2 * * 0#2 /opt/bin/cleanup.sh
15 18 3 * * /opt/bin/verrrrrrrry.sh
But of course these are not correct.
For #1, I do not know how to specify the '2nd Monday', nor 'every 4 hours', while still beginning at 02:00.
For #2, I have no idea how to only specify months ending in an 'r' except by manually coding them in. Nor do I know how to specify the 3rd day.