help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run only once when shedule if every 15 min?


From: David J. Bianco
Subject: Re: run only once when shedule if every 15 min?
Date: 16 Dec 2002 16:32:00 -0500

On Mon, 2002-12-16 at 15:22, Wheeler, John wrote:
> I run cfagent out of inittab via cfexecd. The schedule is every 15
> minutes. Is there any easy way to get a command to run just once a day
> in a given hour?
> 
> The problem I have is if I run:
> 
> shellcommands:
>         hostblah.Hr02::
>                 '/bin/echo "this is a test"'
> 
> I get the phrase repeated four time in that hour. 

Try:

        shellcommands:
                hostblah.Hr02_Q1::
                        '/bin/echo "this is a test"'

The extra "_Q1" means only if it's in the first quarter hour of Hr02.  
Since this is run only once every 15 minutes anyway, this will make the
command run exactly once every hour.

        David

-- 
David J. Bianco <address@hidden>
Thomas Jefferson National Accelerator Facility




reply via email to

[Prev in Thread] Current Thread [Next in Thread]