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$\'\'') )
Brandon Evans wrote:
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!
--
Kelly Craig
UCAR/NCAR
Earth Observing Laboratory
Systems Administration
FL1 - Rm. 2103
Ph: (303) 497-8825
Fx: (303) 497-2044
E-Mail: [EMAIL PROTECTED]
_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine