HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
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

 

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.