help-cfengine
[Top][All Lists]
Advanced

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

Re: Exec a script to determine further action based on return code.


From: Brendan Strejcek
Subject: Re: Exec a script to determine further action based on return code.
Date: Thu, 23 Jun 2005 10:32:36 -0500
User-agent: Mutt/1.5.6+20040907i

Brian E. Seppanen wrote:

> I have an action that I need to perform on a regular basis, and the
> means of determining if the update should be done requires an SQL
> query. I can write a script that will return 1 or 0 to define a
> variable, but how do I provide the feedback to cfengine based on the
> return code as to whether the action should be performed or not...

Define a class based on ReturnsZero in the classes: section.

Make your action contingent upon that class being defined.




reply via email to

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