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:06:30 -0800
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Mark Burgess wrote:

That's because the quotes disappear when they are not escaped.
So this works as it should




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


Ahh very nice. I didnt try escaping evey quote within the command. I just test this and verified that it does work on 2.1.18. The df -l output is no longer being shown.

Thanks a lot for the help and all your hard work!


--

  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]