help-cfengine
[Top][All Lists]
Advanced

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

FileExists problems


From: John van Zantvoort
Subject: FileExists problems
Date: Fri, 16 Dec 2005 08:58:37 +0100

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:

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.


best regards,

              John van Zantvoort

reply via email to

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