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
Dennis Handly
Acclaimed Contributor

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