1)
If some job supposed to run on 1st of every month at 7 AM
In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day?
2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct)
And if 25th falls on Sunday, how can we make it work next business day.
Thanks for pointing out the conflict between my line/case numbering and the crontab lines themselves. I corrected that in the post for clearer readability.
RudiC, nothing wrong with your posting, I just stole, er, borrowed the "1,4,7,10" - I had "*" for the month and had [[ `date +%m%a` == @(01|04|07|10)... ]] to select the month.
Thanks much for the quick response . appreciate your help derekludwig & RudiC. I will consider these examples and reading cron man page as well. I will test it on lab box.