9

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

0 0 * * * *

0 0 */1 * * *

Also how are they both different?

N.A
  • 187
  • 1
  • 1
  • 5
  • Check out [crontab guru](https://crontab.guru/). It can tell you when the different timings run – Reyno Nov 25 '21 at 07:50
  • @Reyno I did check it out but I wanted to know how are they both different because they are doing the same work for me. – N.A Nov 25 '21 at 07:54

1 Answers1

11

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 *.

devblack.exe
  • 428
  • 4
  • 17