Operating System - HP-UX
1753779 Members
7473 Online
108799 Solutions
New Discussion юеВ

Re: excute script every 15 minutes

 
SOLVED
Go to solution
UVA
Regular Advisor

excute script every 15 minutes

Hi Guru's

I wants to excute my script every 15 minutes
in a day, what will be the value in the minute field.pls...

thank you

8 REPLIES 8
Mike Shilladay
Esteemed Contributor

Re: excute script every 15 minutes

Hi,

You will need 4 values in the minute field seperated by commas. You can choose the minute value, e.g. 2,17,32,47

Mike.
Shrikant Lavhate
Esteemed Contributor
Solution

Re: excute script every 15 minutes

Complete time date entry will be,

1,16,31,46 * * * * command

Entries of minutes with difference of 15 and separated by commas.
Will it remain a personal, if I broadcast it here!
UVA
Regular Advisor

Re: excute script every 15 minutes

Hi,

0-59/15 * * * * <script name>

can this entry will do the same?
Mike Shilladay
Esteemed Contributor

Re: excute script every 15 minutes

Hi,

I personally haven't seen it like you suggest, not that I am saying it will not work. If it does work then that is new to me.

Specifying the minutes gives you greater control though, rather than letting the OS decide for you.

Mike.
Dennis Handly
Acclaimed Contributor

Re: excute script every 15 minutes

0-59/15 * * * * <script name>
>can this entry will do the same?

No. You must physically list all of the values:
0,15,30,45 * * * * <script name>
UVA
Regular Advisor

Re: excute script every 15 minutes

Hi,

I am in front of linux system and i am doing the following entry and it's works

*/15 * * * * <script name>

But i am not sure with the hp-ux this is why i am asking to guru's.

Shrikant Lavhate
Esteemed Contributor

Re: excute script every 15 minutes

From man pages, / syntex you are using with linux will not work with hpux. I currently dont have machine here to check. May be someone around here can check and verify.
Will it remain a personal, if I broadcast it here!
Dennis Handly
Acclaimed Contributor

Re: excute script every 15 minutes

>I am in front of linux system
*/15 * * * * <script name>
>But I am not sure with HP-UX

It won't work. crontab(1) says:
Each pattern can be either an asterisk, ... or a list of elements separated by commas. An element is either a number in the ranges shown above, or two numbers in the range separated by a hyphen
http://docs.hp.com/en/B2355-60130/crontab.1.html