Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running cron job/task at every hour [duplicate]

Which one is the correct syntax for running a job at every hour?

0 0 * * * *

0 0 */1 * * *

Also how are they both different?

like image 506
N.A Avatar asked Dec 30 '25 14:12

N.A


1 Answers

The correct syntax for every hour job is 0 * * * *.

But you can use both 0 0 * * * * and 0 0 */1 * * * Since */1 means every 1 hour/minute/second like the *.

like image 174
devblack.exe Avatar answered Jan 02 '26 13:01

devblack.exe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!