Forum: CFEngine Help
Subject: copy only if file exists
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,23189,23189#msg-23189
So, on some systems, there is a symlink in /usr/local/sbin/cf-twin which points
at cf-agent. It was put there a while ago to suppress some log warnings.
Forum: CFEngine Help
Subject: Re: How to run a command every two hours?
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,23176,23188#msg-23188
if_elapsed is defined in cfengine_stdlib.cf, which you must download from
http://cfengine.com/starterkit, and then include in your po
Forum: CFEngine Help
Subject: Re: How to run a command every two hours?
Author: myabdemon
Link to topic: https://cfengine.com/forum/read.php?3,23176,23187#msg-23187
@neilhwatson
I do not have if_elapsed in library.cf, but I add it, like this.
body action if_elapsed(x)
{
ifelapsed => "$(x)";
exp
Forum: CFEngine Help
Subject: Re: How to run a command every two hours?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,23176,23186#msg-23186
That function is part of the standard library, which must be part of your
inputs. It may be called 'if_elapsed'
Forum: CFEngine Help
Subject: Re: How to run a command every two hours?
Author: myabdemon
Link to topic: https://cfengine.com/forum/read.php?3,23176,23185#msg-23185
@Seva
ifelapsed seems not to be supported by command.
I tried before, but I got error showed below.
No such FnCall "ifelapsed()"
On 08/23/2011 01:29 PM, no-re...@cfengine.com wrote:
> You are right, I got error from cf-agent -v.
>
>
> cf3 Skipping whole next promise (/home/cmdb/cmdb.sh), as context
> (GMT_Hr00|GMT_Hr02|GMT_Hr04|GMT_Hr06|GMT_Hr08|GMT_Hr10|GMT_Hr12|GMT_Hr14|GMT_Hr16|GMT_Hr18|GMT_Hr20|GMT_Hr22)&Min00_05&dev
Forum: CFEngine Help
Subject: Re: How to run a command every two hours?
Author: myabdemon
Link to topic: https://cfengine.com/forum/read.php?3,23176,23183#msg-23183
@zzamboni
You are right, I got error from cf-agent -v.
cf3 Skipping whole next promise (/home/cmdb/cmdb.sh), as context
(GMT_Hr0
Forum: CFEngine Help
Subject: Re: conditional setting of a variable
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,23180,23182#msg-23182
David,
ifvarclass indeed does not work inside the vars: section (I agree this would be
nice), but you can use the traditional class-expr
Forum: CFEngine Help
Subject: purge doesn't backup
Author: hartikka
Link to topic: https://cfengine.com/forum/read.php?3,23181,23181#msg-23181
I was a little surprised and hurt to find this out.
If I set purge => "true" in a copy_from the files that are purged from the
client are not backed up
Forum: CFEngine Help
Subject: conditional setting of a variable
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,23180,23180#msg-23180
(cfengine-community 3.1.4; RHEL 5.x)
Summary: I would like to define a variable only if certain conditions,
determined at run-time, are tru
Forum: CFEngine Help
Subject: Re: How to run a command every two hours?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,23176,23179#msg-23179
Thanks, Diego, I feel myself outdated a bit.
___
Help-cfengine mailing list
Help-c
Forum: CFEngine Help
Subject: Re: How to run a command every two hours?
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,23176,23178#msg-23178
@Seva: & and . are equivalent in class expressions and both mean AND:
‘.’ The AND operator.
‘&’ The AND operator (alternative).
@
Forum: CFEngine Help
Subject: Re: How to run a command every two hours?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,23176,23177#msg-23177
Well, I guess, the following approach fits if your goal is to run smth at least
every 2 hours:
classes::
"dev" and => {classm
Forum: CFEngine Help
Subject: How to run a command every two hours?
Author: myabdemon
Link to topic: https://cfengine.com/forum/read.php?3,23176,23176#msg-23176
Hello,
I am trying to run a command, facter every two hours every day.
Here is my policy, but it doesn't work.
"dev" and => {classmatc
On 08/23/2011 07:32 AM, David Lee wrote:
> cfengine distributes an "update.cf". That ought to be high quality and
> reliable. But what I find is that this DISTRIBUTED version seems not to
> have been written with flexibility in mind. In other words, the example
> code from cfengine, about its
Sjoerd Oostdijck wrote:
> On 8/22/11 10:36 AM, no-re...@cfengine.com wrote:
>> From the top-level, what I want is for "update.cf", when checking
>> "/var/cfengine/inputs", to try one server, and if that times out, then to
>> try another in the list.
>>
>> Now the "copy_from" compound body has a
On 22 August 2011 16:39, Mikhail Gusarov wrote:
>
> You might just change the aforementioned file in both configure and
> configure.ac, then only ./configure is needed.
I changed both files, but it still bombs with the same error.
I see others have the same problem and that you are working on a
17 matches
Mail list logo