Article overview

Help article

What values should I enter for a cron job?

When using a cron job, you can indicate precisely when a job should be performed. Five different variables are available for this purpose, i.e. minute, hour, day, month and day of the week.

The job you have set up will be performed automatically if the variables set up are the same as the current time.

The accepted values are:
MinHourDayMonthWeekday
0-590-231-311-120-7 (0 or 7 for Sunday)


Each different field can be specified in different ways:

Number only
For example, 2 in the hour field to perform the job between 2 and 3 a.m. only.

Number series
For example, 9-17 in the hour field to perform the job during office hours only.

Always
By entering * (an asterisk) the time will always match.

Repetitive
By entering */5 in the minute field, for instance, the job can be performed every five minutes.

Do you have a good idea?

Give us your idea! If it's popular we'll add it to the wishlist!

Has this article been helpful?

Create an account or log in to leave a rating.

Share this article

Comments

Create an account or log in to be able to leave a comment.

Are you stuck?

Ask one of our specialists to assist you

Contact us