i like to put the run condition in the crontab entry:
10 0 8-14 * * [ `date +%u` -eq 3 ] && /home/arielmt/bin/my-cronjob-bash-foolery.sh
also, the second week of the month will always be in the range 8-14, regardless of which day of the week you are after :)
--josh (Not signed in).....Sun Feb 10 21:58:07 -0800 2013
so would a cron line that looks like
"20 4 8-14 * 3 /root/patch-tues" or
"20 4 8,9,10,11,12,13,14 * 3 /root/patch-tues"
not work as well withoout the bash foolery? I've not used them before but just added them to my crontab to test 'em.
I was trying to get a patch list the day after patch tuesday @ 4:20
Cheers
--Cron Solo (Not signed in).....Thu Apr 11 12:33:05 -0700 2013


