Re: Is it possible to suppress error messages from ReadTCP in cfengine 2?

2010-03-18 Thread Chris Ward
You could probably easily port the functionality you're looking for in using ReadTCP to netcat. Then you could either write a wrapper script that calls netcat, or just run netcat itself, inside of a ReturnsZero or ReturnsZeroShell function. Although you're obviating the usage of an internal cf

Re: Problem with purge and failover in copy statement

2010-02-02 Thread Chris Ward
We had the same requirement in our environment, that is, the ability to purge against a single file copy rule. Attached is a patch file we're using against 2.2.10 to support this kind of behavior. It works for both local and server-side copy rules. Just apply the patch to 'src/do.c'. Mark, i

Re: AddClasses with ExecResult

2010-01-26 Thread Chris Ward
Omit the spaces in your output: control: AddClasses = ( ExecShellResult("/path/to/get_classes.sh") ) $ /path/to/get_classes.sh dev_class,system_class,some_other_class On Thu, 21 Jan 2010, Atom Powers wrote: > I'd like to use ExecResult with AddClasses to add several classes at > once, by p