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


_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine
  • ReturnsZero Viraj Alankar
    • Re: ReturnsZero Brendan Strejcek

Reply via email to