help-cfengine
[Top][All Lists]
Advanced

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

String processing within cfengine files


From: Chris Kacoroski
Subject: String processing within cfengine files
Date: Fri, 10 Jun 2005 10:07:53 -0700
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

Hi,

I need to set a nvram parameter with the non-qualified hostname on my Macs. CFengine has a ${host} variable which shows up as 'hostname.local' on the Mac. I want to set the parameter to just 'hostname' Is there any way to shorten this string within a CFengine file. I know I can do with with another script, but I would like to avoid using external scripts all the time.

Thanks in advance,

cheers,

ski

--
"When we try to pick out anything by itself, we find it
  connected to the entire universe"                John Muir

Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263




reply via email to

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