On Jan 28, 2008 2:26 PM, Scott Ehrlich <scott@mit.edu> wrote:
Is it possible for me to schedule cron to say run script A on the first
Friday of the month, script B on the second Friday of the month, script C,
etc.?
day=`date +%d`
if [ $day -ge 8 -o $day -le 14 ]; then
echo '2nd Friday'
# do F2
elif [ $day -ge 15 -o $day -le 21 ]; then
echo '3rd Friday'
# do F3
fi