help-cfengine
[Top][All Lists]
Advanced

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

Re: ReturnsZero


From: Brendan Strejcek
Subject: Re: ReturnsZero
Date: Sun, 13 Nov 2005 20:08:50 -0600
User-agent: Mutt/1.5.6+20040818i

Viraj Alankar wrote:

> classes:
>   have_clearsilver = ( ReturnsZero(/bin/echo 'import neo_cgi' |
> /usr/local/bin/python2.4) )

How about:

    classes:
        have_clearsilver = (
            ReturnsZero(/usr/local/bin/python2.4 -c 'import neo_cgi')
        )

You could also use the /bin/sh -c '' trick that has been discussed often
lately, or the new evaluated function mark just wrote, ExecShellResult.
I would probably want to wrap the above in a shell anyways so that I
could throw away the output.

For more info, read the thread started by this message:

    http://groups.google.com/group/gnu.cfengine.help/msg/b95b4dd6dde7f13f

Best,
Brendan

--
Senior System Administrator
The University of Chicago
Department of Computer Science

http://www.cs.uchicago.edu/people/brendan

http://people.cs.uchicago.edu/~brendan




reply via email to

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