Shopping cart

How can I configure cronjob?

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 00:00 everyday

0 0 * * *

Run Weekly

It will be run at 00:00 Sunday

0 0 * * 7

It will be run at 00:00 Monday

0 0 * * 1




Back Ask a question