help-cfengine
[Top][All Lists]
Advanced

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

Re: Problems with ExecResult & ReturnsZero in 2.1.18


From: Brandon Evans
Subject: Re: Problems with ExecResult & ReturnsZero in 2.1.18
Date: Thu, 29 Dec 2005 15:27:49 -0800
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Kelly Craig wrote:
But, if you type it like this, you will also incure the wrath of CFENGINE!
:)

VarPart = ( ReturnsZero("/bin/sh -c \"df -l | grep \'^/dev\' | awk
\'{print $NF}\' | grep -q \'^/var$\'\"") )

You need to replace the quites like so.

VarPart = ( ReturnsZero('/bin/sh -c \'df -l | grep \'^/dev\' | awk
\'{print $NF}\' | grep -q \'^/var$\'\'') )


What exactly do you mean by wrath? I have is setup using the double-quotes and everything *seems* to be fine. is there some sort of time bomb waiting for me?

--

  Brandon Evans

"I have a theory that the truth is never told during the nine-to-five hours."
-Hunter S. Thompson




reply via email to

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