Adriano Marcuz
New Member
Good morning all,
read several posts that this can't be done, but maybe someone has accomplished anyway.
What I need is to launch a script on the First Saturday of every month and two days before. For example first Saturday of December 2023 will happen on the second, I'd like my script to be launched on November 30th, December 1 and on December 2nd.
I can code a crontab for each say Saturday like ' 0 0 0 ? * 7#1 * /my script' and another for '0 0 0 ? * 6#1 * /my script' ......but wondered if anyone found a more efficient way as well as if the first Saturday happens on the 1st, then the coding for two days before becomes problematic.
Thanks for your input
read several posts that this can't be done, but maybe someone has accomplished anyway.
What I need is to launch a script on the First Saturday of every month and two days before. For example first Saturday of December 2023 will happen on the second, I'd like my script to be launched on November 30th, December 1 and on December 2nd.
I can code a crontab for each say Saturday like ' 0 0 0 ? * 7#1 * /my script' and another for '0 0 0 ? * 6#1 * /my script' ......but wondered if anyone found a more efficient way as well as if the first Saturday happens on the 1st, then the coding for two days before becomes problematic.
Thanks for your input