help-cfengine
[Top][All Lists]
Advanced

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

Re: Q: defining classes from shell command output


From: John Wieczorek
Subject: Re: Q: defining classes from shell command output
Date: Fri, 24 Aug 2001 15:38:37 -0400 (EDT)

Thanks to all who responded - I've found a workaround to the problem...

cfengine interprets the PIPE (and everything after) as arguments to
isainfo.

> I'm trying to define a class using the out put of a shell command eg:
> control:
>          bits = ( "exec /usr/bin/isainfo -kv | cut -b1-2" )
>          addclasses  =  ( "$(bits)" )
 
If I feed the whole statement to sh  I get what I expected

        bits = ( "exec /bin/sh -c `/usr/bin/isainfo -kv | cut -b1-2`" ) 
        addclasses  =  ( "$(bits)" )





reply via email to

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