holiday

hey all, I have set up a cron job which would be invoked at 1:00 am everyday. However, there is really no need to invoke such job if it's a public holiday so I am wondering if anyone have any idea on how to approach this? Thanks in advance!

Check this: cron and crontab
Learn Perderabo's given tutorial, it'll save your much time in future writing cron jobs.

Regards,
Tayyab

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.