I'd love some help on setting up a cron schedule for three scripts I have. I need to schedule the first script to run on the 1st Tuesday of every month, the second script to run on the 2nd Tuesday of every month, and the third script to run on the 3rd Tuesday of every month. Here's what I have so far.
# Run first script on the 1st Tuesday of every month at 9:00 AM
0 9 1,2,3,4,5,6,7 * 2 wget -q -O /dev/null http://site.com/first-script
# Run second script on the 2nd Tuesday of every month at 9:00 AM
0 9 8,9,10,11,12,13,14 * 2 wget -q -O /dev/null http://site.com/second-script
# Run third script on the 3rd Tuesday of every month at 7:00 AM
0 7 15,16,17,18,19,20,21 * 2 wget -q -O /dev/null http://site.com/third-script
I believe these scripts will run on the 1st, 2nd, and 3rd Tuesday of every month AND for every day 1-21 of the month. Looks like from what I've read the day of the week and days are an AND, is that true?
Hopefully this is possible w/ cron, otherwise I'll have to move the decision to run the script or not inside the script itself.