Operating System - HP-UX
1820601 Members
1900 Online
109626 Solutions
New Discussion

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 2
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.