Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run a prog every 15 mins at peak times

Status
Not open for further replies.

SM777

Technical User
Mar 7, 2001
208
GB
Is there an easier way to using crontab for doing this:

run a file every 15 minutes from 08:00 to 11:00, every half hour from 12:00 to 14:00 and every hour from 15:00 to 23:00

I'm just being lazy here. I know I could just type the stuff in in Crontab but just wondering if there is a quicker way especially for the 'every 15 from 08:00 to 11:00'

 
How 'bout:

*/15 8-11 * * * <your app>
*/30 12-14 * * * <your app>
0 15-23 * * * <your app>

 
Thats what I was looking for

cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top