help-cfengine
[Top][All Lists]
Advanced

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

Re: module output becomes an actionsequence?


From: Hugo Gayosso
Subject: Re: module output becomes an actionsequence?
Date: 20 Jan 2003 09:37:31 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Luke A. Kanies" <address@hidden> writes:

> I tried that and it still didn't work.  As far as I can tell, cfengine
> just doesn't support pipes in ExecResult.
> 
> I could just be retarded, though.  This is what I have:
> 
> control:
>    variable = ( ExecResult(/bin/domainname | /bin/sed 's/m/n/') )

This is how I use it:

control:
   NIC_100_FD_NEG_Servers::
      NIC_check_cmd = ( "/bin/sh -c '/sbin/mii-tool eth0 | grep 
$(dblquote)negotiated 100baseTx-FD, link ok$(dblquote) > /dev/null'" )


I do NOT use "ExecResult" though, so that might be the difference.

Greeetings,
- -- 
Hugo Gayosso
Support the Free Software Movement!
GNU Project <http://www.gnu.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+LAmrx2JZtTN6co8RAgt9AJ4kMNTh/j9K/AXbs5a2VGxWgKi03QCfcCRh
YX/IEKfRTBZgV5qvYjk5qA0=
=tbEI
-----END PGP SIGNATURE-----




reply via email to

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