How can I configure cronjob?

Modified on Mon, 13 Mar, 2023 at 5:57 PM

schedule is schedule in cron format. The following graph shows what it consists of:

* * * * * command to be executed | | | | | | | | | +----- Day of week (0 - 7) (Sunday=0 or 7) | | | +------- Month (1 - 12) | | +--------- Day of month (1 - 31) | +----------- Hour (0 - 23) +------------- Minute (0 - 59)

Examples

Run Daily

It will be run at 15:30 every day

30 15 * * *

Run Weekly

It will be run at 08:00 Sunday

0 8 * * 7

It will be run at 12:03 Monday

3 12 * * 1

Run monthly

It will be run once a month

0 0 1 * *

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article