[ILUGC] Re: Need help on crontab - run a script on every month second saturday - 3 PM
- From: Rengaraj D <sakthirengaraj@xxxxxxxxx>
- To: ilugc@xxxxxxxxxxxxx
- Date: Wed, 9 Sep 2020 13:53:06 +0530
On Wed, 9 Sep 2020 at 13:38, Shrinivasan T <tshrinivasan@xxxxxxxxx> wrote:
Hello all,
I need to run a scheduled script using crontab or airflow.
The time is - every month second saturday - 3 PM
Not sure how to do it in crontab exactly for 2nd saturday.
What I would do is RUN the script every saturday 3PM move the check of 2nd
saturday inside the script.
1. Inside the script
if not <2nd saturday>
return
<your logic>
Your actual logic will execute only on 2nd saturday.
Regards
Rengaraj
---
Mailing List Guidelines:
https://ilugc.in/mailing-list-guidelines
Web:
http://ilugc.in/
Internet Relay Chat: #ilugc on irc.freenode.net
Other related posts: