How can I write a code that will run a task for example "everyday (or every 24 hours)at 3:20 a.m."? The main problem is "3:20" part, how do I make cron task at this exact time?
CodePudding user response:
You simply specify the minute and hour that you want it to occur on, and use * for the other values. For example: 20 3 * * *
will run at 3:20 AM every day forever.
You can experiment with cron-schedules using this website to get a better understanding for how the syntax works: https://crontab.guru/#20_3_*_*_*