[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: ReturnsZero problem
From: |
Wheeler, John |
Subject: |
RE: ReturnsZero problem |
Date: |
Mon, 7 Feb 2005 09:49:18 -0600 |
bug... not really I guess kinda cfenginism. Try the ever faithful
/bin/ksh -c"/bin/banner my command goes here"
I think I have a few pipe commands like you describe below and this is
how I got Cfengine to behave.
wheeler
> -----Original Message-----
> From: help-cfengine-bounces+jwheeler=eb.com@gnu.org
[mailto:help-cfengine-
> bounces+jwheeler=eb.com@gnu.org] On Behalf Of Zeev Fisher
> Sent: Sunday, February 06, 2005 6:30 AM
> To: help-cfengine@gnu.org
> Subject: ReturnsZero problem
>
> Hi,
>
> I'm trying to evaluate a classes with the following ReturnsZero :
>
> Ldap_Ok = ( ReturnsZero(/usr/lib/ldap/ldap_cachemgr -g|/usr/bin/grep
UP)
> )
>
>
> when i run this command on Solaris machine (
> i.e./usr/lib/ldap/ldap_cachemgr -g|/usr/bin/grep UP) it's ok but when
i
> run cfagent -p -v :
>
> Looking for an input file cf.groups.solaris
> /usr/lib/ldap/ldap_cachemgr: illegal option -- |
> /usr/lib/ldap/ldap_cachemgr: illegal option -- /
> /usr/lib/ldap/ldap_cachemgr: illegal option -- u
> /usr/lib/ldap/ldap_cachemgr: illegal option -- s
> Usage: /usr/lib/ldap/ldap_cachemgr [-d debug_level] [-l logfilename]
> [-K] [-r revalidate_interval] [-g]
>
> It seems that ReturnsZero doesn't like the pipe.
>
> I didn't find in the doc any restriction about this.
>
>
> Is it bug or it supposed to be like this ?
>
>
> Thanks !
>
>
>
>
>
>
>
>
>
> --
> Zeev Fisher - Unix System Administrator
> Marvell Semiconductor Israel Ltd
> 6 Hamada Street, Mordot HaCarmel Industrial Park
> Yokneam 20692
> Israel
>
> Email - Zeev.Fisher@il.marvell.com
> Tel - + 972 4 9091402
> Cell - + 972 54 4995402
> Fax - + 972 4 9091501
> WWW Page: http://www.marvell.com
>
------------------------------------------------------------------------
> This message may contain confidential, proprietary or legally
privileged
> information. The information is intended only for the use of the
> individual
> or entity named above. If the reader of this message is not the
> intended recipient, you are hereby notified that any dissemination,
> distribution
> or copying of this communication is strictly prohibited.
> If you have received this communication in error, please notify us
> immediately by telephone, or by e-mail and delete the message from
your
> computer.
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine