Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just want to know which one should work just fine for Run every 6 hours forever:

0   */6 *   *   *

or

*   */6 *   *   *

Thanks

share|improve this question

migrated from stackoverflow.com Dec 3 '12 at 1:54

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

I would say the first one. It will run once every six hours. You can also try to set specific hours like this:

00 2,8,14,20 * * * 

You might also find useful to check out this page.

share|improve this answer
add comment

The second... Which you could have realised for yourself by consulting the appropriate manpage.

share|improve this answer
    
Mod this answer down, it's incorrect: that will make the job run every minute for the matching hour. –  vvanscherpenseel Oct 23 '13 at 12:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.