help-cfengine
[Top][All Lists]
Advanced

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

Re: FileExists problems


From: John van Zantvoort
Subject: Re: FileExists problems
Date: Fri, 16 Dec 2005 09:49:29 +0100

classes:

    any::

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

Doesn't work either. On both systems.

On 12/16/05, Mark Burgess <Mark.Burgess@iu.hio.no> wrote:
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]