[Top][All Lists]

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

Re: Q: defining classes from shell command output

From: Chris Edillon
Subject: Re: Q: defining classes from shell command output
Date: Wed, 22 Aug 2001 22:04:54 -0400 (GMT+4)

On Wed, 22 Aug 2001, jmw wrote:

> 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)" )
> This should presumably add a class called "32" or "64".
> Instead I get classes that are  the actual shell command  - not the 
> output of the shell command.
> Perhaps there is a cleaner  way to create a class based on the kernel 
> arch...
  i could have sworn that a 64bit hard class was set by cfengine
itself on 64-bit plaforms.  not at work so i can't check that
right now, but see if there is a 64-bit related class in your list
of classes in the output of `cfengine -vp`


reply via email to

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