what is difference between */5 and 5 for minute value in crontabs? [closed]
I have crons:
5 * * * * /somescript
*/5 * * * * /somescript
What is the difference between them? Is second one running every 5 minutes and first is running 5 minutes after every hour?
Solution 1:
5 * * * *
means it runs once per hour at five minutes past the hour.
*/5 * * * *
means it runs once every five minutes.
The later construct behaves slightly unintuitive if the number does not divide 60. For example */19
would run 4 times per hour at :00, :19, :38, and :57.