09-12-2006
122,
0
Join Date: Aug 2006
Last Activity: 27 April 2010, 9:08 PM EDT
Posts: 122
Thanks Given: 0
Thanked 0 Times in 0 Posts
Hi, If your cron job is a script (or not you could make it one) then
simply create a file say /usr/local/etc/public.holidays
and list the public holidays in an easy format say dd/mm/yyy.
when cron starts the script, the first thing the script does is check to see if today (the day we are running the cron job) matches any of the days listed in you public.holidays file. If it does. then you stop processing otherwise you continue processing and run your job.