Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set a cron job to run every 3 hours [duplicate]

Is this the correct way for setting a cron job to run every 3 hours? After setting it this way, cron is executing the command every minute.

enter image description here

like image 535
consigliere Avatar asked Mar 19 '14 15:03

consigliere


People also ask

What is the use of * * * * * In cron?

It is a wildcard for every part of the cron schedule expression. So * * * * * means every minute of every hour of every day of every month and every day of the week .

How do I schedule a cron job every 12 hours?

Show activity on this post. ->cron('0 */12 * * *'); This cron will run the scheduler at every 12 hours.

What is cron expression 0 * * * *?

Meaning of cron expression 0 * * * * *? I think it means the scheduler is expected to run every seconds.


1 Answers

Change Minute to be 0. That's it :)

Note: you can check your "crons" in http://cronchecker.net/

Example

like image 97
jimm-cl Avatar answered Oct 10 '22 20:10

jimm-cl