I want to run a cron job at 17:00 everyday. Which one is the correct format?
0 17 * * *
or 0 */17 * * *
or are they both same? Please do tell the difference.
I want to run a cron job at 17:00 everyday. Which one is the correct format?
0 17 * * *
or 0 */17 * * *
or are they both same? Please do tell the difference.
Share asked Dec 1, 2021 at 8:28 N.AN.A 2751 gold badge4 silver badges8 bronze badges2 Answers
Reset to default 5The first is correct - it runs at 17:00 each day. The second runs every 17 hours. So 17:00 the first day, 10am the next and so on. You can test your cron configurations at https://crontab.guru/. Other similar sites are available.
Here you are a list of examples for CRON tasks (source):