- This topic has 5 replies, 3 voices, and was last updated 15 years, 5 months ago by .
I was asked if cron could schedule a script one hour earlier than normal on the first weekday of the month, ignoring holidays.
Currently the script is scheduled via cron to kick off M-F at 6:30 PM even on holidays.
I googled at first for a solution and then searched clovertech a bit.
My google search did mentioned what I had figured as a work around for cron’s supposed inability to do this.
One possible solution is to have cron schedule the event for an hour earlier at 5:30 PM Monday thru Friday for the first 3 days of each month and wrap the following psudo logic around the real script to decide if this is the first week day of the month:
- The forum ‘General’ is closed to new topics and replies.