I have the following Cron rule:
0 8 1,2,3,4,5,6,7,14,15,16,17,18,19,20 * 2 /root/command.sh
My objective is to run the /root/command.sh on Tuesday every two weeks.
Crontab.guru returns the following:
At 08:00 on day-of-month 1, 2, 3, 4, 5, 6, 7, 14, 15, 16, 17, 18, 19, and 20 and on Tuesday.
and on Tuesday
But, for some reasons, the above task was run today (Friday).
For precision:
$> date
$> Fri Mar 3 10:04:21 UTC 2023
The server is correctly thinking we are Friday.
Also
$> cat /etc/issue
$> Debian GNU/Linux 11
I'm suspecting that somehow, the parameters given to Cron are not correct?
Precision: If you have a better way to tell Cron "run this on Tuesday every two weeks", I'm all ears!