Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Which runs every 2 minutes between 9 am to 5:30 pm? I can make it run if its 9 to 5 but just not getting that 5:30 pm? Is there a way out?

PS: Except for splitting the jobs

share|improve this question
What about making it two jobs? – andol Jul 19 '10 at 18:57

Just do two cronjobs.

*/2 5-16 * * * your_script
0-30/2 17 * * * your_script
share|improve this answer

Run the cron job every two minutes, so just "*/2 * * * * *" in the cron entry.

Then have the actual script check if the time is >9:00 and <17:30

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.