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
cancel
Showing results for 
Search instead for 
Did you mean: 

crontab entry help

 
rajesh73
Super Advisor

crontab entry help

kindly help the crontab entry

i want schdule monitoring script every two hour.kindly help below mention is correct or not

* */2 * * * /monitoring script/
5 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: crontab entry help

Hi:

With HP-UX you must write something like:

* 0,2,4,6,8,10,12,14,16,18,20,22 * * * monitor.sh

See the manpages for 'crontab(1)'.

Regards!

...JRF...

rajesh73
Super Advisor

Re: crontab entry help

ok i will check and revert back to you

Re: crontab entry help

>* */2 * * * /monitoring script/

Unfortunately this works for Linux, not HP-UX.
eng.Zohair
Esteemed Contributor

Re: crontab entry help

Hello

For HPUX, you need to add each 2s for your command as the following 0,2,4,6,8,10,12,14,16,18,20,22

so, the command it may likes
* 0,2,4,6,8,10,12,14,16,18,20,22 * * * xx.sh

Regrads,
Zohair
madhuchakkaravarthy
Trusted Contributor

Re: crontab entry help

hi

min:hrs:day:month:dayofweek /path


0,5,10,15 **** /tmp/monitor.sh

regards

MC