Forum: Cfengine Help
Subject: cf3 commands error
Author: RIngersoll
Link to topic: https://cfengine.com/forum/read.php?3,17135,17135#msg-17135
I've been banging my head trying to get a simple command to execute:
body common control
{
bundlesequence => {
"test"
};
}
bundle agent test
{
commands:
"/bin/grep admin /etc/passwd >/tmp/passwd.txt"
contain => "shell";
}
-> Executing '/bin/grep -E admin /etc/passwd >/tmp/passwd.txt'
...(timeout=-678,owner=-1,group=-1)
!! Finished script /bin/grep -E admin /etc/passwd >/tmp/passwd.txt -- an error
occurred
Q: ".../bin/grep -E ad": grep: can't open >/tmp/passwd.txt
Is this a bug? Any workaround?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine