help-cfengine
[Top][All Lists]
Advanced

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

RE: String processing within cfengine files


From: Luke Youngblood
Subject: RE: String processing within cfengine files
Date: Fri, 10 Jun 2005 14:12:21 -0400

I'm by no means a Mac guru, but I believe this hostname is just pulled from
your /etc/hosts file.  Edit this file, and try changing the hostname there
by dropping the .local from the end.  I believe that should fix this for
you.

-----Original Message-----
From: help-cfengine-bounces+lyoungblood=phonechargeinc.com@gnu.org
[mailto:help-cfengine-bounces+lyoungblood=phonechargeinc.com@gnu.org] On
Behalf Of Chris Kacoroski
Sent: Friday, June 10, 2005 1:08 PM
To: help-cfengine@gnu.org
Subject: String processing within cfengine files

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


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine





reply via email to

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