help-cfengine
[Top][All Lists]
Advanced

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

Re: FileExists problems


From: Mark Burgess
Subject: Re: FileExists problems
Date: Fri, 16 Dec 2005 09:27:21 +0100

On Fri, 2005-12-16 at 08:58 +0100, John van Zantvoort wrote:
> Hello,
> 
> I'm trying to define some classes in the following way:
> 
> classes:
> 
>     any::
> 
>        sys_server = ( FileExists( /etc/passwd ) )
> 
> which, as expected, fails misserably. However this:

Why would you expect this? Probably you should have written 

sys_server = ( FileExists("/etc/passwd") )

otherwise you are searching for " /etc/passwd "

> 
> 
> classes:
> 
>     any::
> 
>         sys_server = ( `/usr/bin/test -f /etc/passwd` )
> 
> works without a hitch.
> 
> This is the case on both a Red Hat Enterprise Linux WS release 4
> (Nahant Update 2) running cfengine-2.1.15-1.2.el4.rf and Fedora Core
> release 3 (Heidelberg) running cfengine-2.1.16-2.fc3.
> 
> I assume I'm making an obviouse mistake but before taking out the five
> black candles and live chicken I'd like to know which one.

Ave Satani
M






reply via email to

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