Cloudy
Cloudy

Reputation: 215

How to execute a cron every 5 minutes at 1 AM to 2 AM

All,

I want to execute a command in cron from 1 AM to 2 PM every 5 minutes. How can I schedule that

Upvotes: 1

Views: 1171

Answers (2)

Deepak Kumar T P
Deepak Kumar T P

Reputation: 1076

Use the cron expression 1Am to 2 AM

*/5 1 * * * command

1am to 2pm

*/5 1-13 * * * command

Upvotes: 4

Alfred George
Alfred George

Reputation: 136

you would go like so

* *5/ 13-14 * * 

Upvotes: -1

Related Questions