Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How often you do this in a cron? - 0 * * * *

Tags:

php

cron

0 * * * *

I use crontab. How often this is done in cron?

like image 697
user2347421 Avatar asked May 06 '13 21:05

user2347421


1 Answers

It will work once every hour, exactly at x:00.

Keep in mind the format of crontab is:

 +---------------- minute (0 - 59)
 |  +------------- hour (0 - 23)
 |  |  +---------- day of month (1 - 31)
 |  |  |  +------- month (1 - 12)
 |  |  |  |  +---- day of week (0 - 6) (Sunday=0 or 7)
 |  |  |  |  |
 *  *  *  *  *  command to be executed

so 0 in the first position means every minute 0, any hour, and day.

like image 117
fedorqui 'SO stop harming' Avatar answered Oct 19 '22 05:10

fedorqui 'SO stop harming'