On Tue, May 24, 2011 at 5:30 AM, Scott Dobner <[email protected]> wrote:
> Here it is. I think I am starting to see the problem with this. I don't
> have a lot of shell scripting experience, and I think the script I sent out
> previously is not exactly a shell script.
>
> bundle agent install_xinstall
> {
> classes:
> "xinstall_exists" expression => fileexists("/usr/local/src/xinstall");
> commands:
> !xinstall_exists::
> "<this is where I would put my command from below>";
> }
Got it.
What your script is trying to accomplish? What is the desired end
state of the system? Are you installing some 3rd party software?
in-house software? It's not available as a package?
As far as Cfengine grammar goes, to use a pipeline in a command,
tell Cfengine to use a shell, for example:
body common control { inputs => {
"/var/cfengine/inputs/cfengine_stdlib.cf" }; }
bundle agent example
{
commands:
"/bin/echo hello > /tmp/test.out; /bin/echo world >> /tmp/test.out"
contain => in_shell;
}
You can try containing your command in a shell, but if that does
not work, please answer my questions above.
Best,
-at
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine