Cron jobs and holidays
Neil Watson
tlug-neil-8agRmHhQ+n2CxnSzwYWP7Q at public.gmane.org
Thu Dec 14 18:53:57 UTC 2006
How would you ensure that a cron job was not run on a statutory holiday?
My current thought was
4 4 * * 2-6 grep `date +%Y%m%d` /etc/holidays 1>/dev/null && my_script
Using this method the holidays file is kept manually. Is there a more
elegant and automatic way?
--
Neil Watson | Debian Linux
System Administrator | Uptime 40 days
http://watson-wilson.ca
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list