Operating System - HP-UX
1823791 Members
4614 Online
109665 Solutions
New Discussion юеВ

Submitting cron jobs to run every 10 minutes

 
Dave Walley_1
Occasional Contributor

Submitting cron jobs to run every 10 minutes

Hi.

I need to submit a job to run every ten minutes and I can do it using 6 lines
in my crontab file what I would like is if possible to create one line to run
my script every 10 minutes from 8 - 20 on 1-5. Can anyone help I am currently
using the 6 lines but would appreciate any advice.

Dave
2 REPLIES 2
Paul Heffels_1
Frequent Advisor

Re: Submitting cron jobs to run every 10 minutes

Hi Dave, have you tried
00,10,20,30,40,50 8-20 * * 1-5 <script to run>
Michael Fedyk_1
New Member

Re: Submitting cron jobs to run every 10 minutes

Try the following entry in your crontab:

0,10,20,30,40,50 8-20 * * 1-5 cron_job

This will submit your cron job every 10 minutes between the hours of 0800 -
2000, Monday thru Friday.

Hope this helps.