I am trying to schedule a script to run once a month in cron on a Saturday only.
In my
But for some reason I received an email this morning to say that it had been run which I thought odd. Today is Saturday so that parts correct but the day is wrong. I specified that the script run only on days 25-31 of the month but it ran today which is the 15.
What is wrong with this cron entry?
I did look at using @monthly in
In my
cron I have the following:
Code:
00 3 25-31 * 6 root /support/zfsscrub.sh | mail -s "ZFS scrub of all pools" root@domain.com
But for some reason I received an email this morning to say that it had been run which I thought odd. Today is Saturday so that parts correct but the day is wrong. I specified that the script run only on days 25-31 of the month but it ran today which is the 15.
What is wrong with this cron entry?
I did look at using @monthly in
cron but then it runs at midnight.