classes:

    any::

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

Doesn't work either. On both systems.

On 12/16/05, Mark Burgess <[EMAIL PROTECTED]> 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



_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to