Quote:
I would like to ask if I can run a crontab job to skip a specific date , eg. to skip the crontab job to run on holiday ? thx
|
Not really. You're best of to write a wrapper script to whatever
you want to run. Have cron attempt to run it every day, and inside the
wrapper-script check for the date you *don't* want to run your job
and exit if it's the current date.
E.g., something like this:
Code:
#!/bin/bash
TODAY=$(date "+%Y%m%d")
if [ "$TODAY" -ne "20091224" ]; then
run your job
else
exit 0
fi
Cheers,
Tink