Greetings!
I have several cron entries which execute on various schedules. I would like to implement an intelligent method of turning these scripts on and off in order to handle holidays and other non-working days (rather than manually changing cron entries).
What comes to mind is creating a file of non-working days, executing a pre-script that looks at this file and if the current date is equal to a date in this file, tell script(s) not to execute.
Would anyone care to share their methodology and some sample syntax? Any info offered would be greatly appreciated.
Regards,
-Michelle
I have several cron entries which execute on various schedules. I would like to implement an intelligent method of turning these scripts on and off in order to handle holidays and other non-working days (rather than manually changing cron entries).
What comes to mind is creating a file of non-working days, executing a pre-script that looks at this file and if the current date is equal to a date in this file, tell script(s) not to execute.
Would anyone care to share their methodology and some sample syntax? Any info offered would be greatly appreciated.
Regards,
-Michelle