help-cfengine
[Top][All Lists]
Advanced

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

Re: Platform string


From: Jeff Wasilko
Subject: Re: Platform string
Date: Mon, 8 Sep 2003 14:36:45 -0400
User-agent: Mutt/1.3.99i

On Mon, Sep 08, 2003 at 01:28:05PM -0400, Ferguson, Steve wrote:
> I'm looking to create a variable that can give me essentially this:
> 
> uname -sr | tr ' ' '_'
> 
> E.g.
> 
> SunOS_5.8
> HP-UX_B.11.00
> Linux_2.4.20-20.9

In cfengine 2.0x, I get classes like this, which look close to
what you want:


sunos_5_9 sunos_sun4u_5_9 

The dot wouldn't be valid in a class name, IIRC.

-j




reply via email to

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