Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What does

2 * * * *

means in crontab context?

I want to run my program every 2 minutes; is that what 2 * * * * means?

share|improve this question

migrated from Feb 11 '10 at 7:05

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

Not quite; that means every 2nd minute of the hour (i.e., 6:02, 7:02, 8:02, etc.). To make it every 2 minutes, use */2 in the first entry:

*/2 * * * *

You can read more about the crontab syntax and available options here at Wikipedia. Ubuntu's got a good overview too.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .