Hello all,
I know that the following will run the user defined script on the first Saturday of the month every 3 minutes after the hour from 8 -5; But is there a way to cause the script to execute for the prior three days before the first Saturday?
If the Saturday coincides with the 4th through the 7th it's reasonably easy, but when the Saturday happens on the First of the month?
Here is a sample created to run script on day 3..5 of month, but like to execute script on 28-30 of previous month if Saturday happens on the 1st.
It will become very complex one-liner, hard to understand and modify in the future. Why not calling the script every day at the time needed and the whole logic if the script should do something or exit immediately to be done at the beginning of your script. There you can use the most complicated logic you may need and it will be well visible on several lines with proper comments.