System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

run cron job every 5 minutes between 6 am and 6 pm - M-F in HPUX 11.31

Darren Etheridge_2
Super Advisor

run cron job every 5 minutes between 6 am and 6 pm - M-F in HPUX 11.31

I need to run a cron job every 5 minutes, between 6 am and 6 pm AND every M-F

 

0,5,10,15,20,25,30,35,40,45,50,55 6-17 * * 1-5  /scripts/mycronjob.sh

00 18 * * 1-5 /scripts/mycronjob.sh

 

 

is the solution I have come up with... is this correct?

 

Thanks!

 

D

2 REPLIES
Steven Schweda
Honored Contributor

Re: run cron job every 5 minutes between 6 am and 6 pm - M-F in HPUX 11.31

 
Dennis Handly
Acclaimed Contributor

Re: run cron job every 5 minutes between 6 am and 6 pm - M-F in HP-UX 11.31

>is the solution I have come up with... is this correct?

 

It sure looks like it.  You cover 6 PM with the second line.  And this only runs M through F.