pcp
[Top] [All Lists]

Re: pmlogger_check.sh in 2.3.1-4

To: Ken McDonell <kenmcd@xxxxxxxxxxxxxxxxx>
Subject: Re: pmlogger_check.sh in 2.3.1-4
From: Alan Hoyt <ahoyt@xxxxxxxxxxxxx>
Date: Wed, 06 Aug 2003 00:41:21 -0500
Cc: PCP <pcp@xxxxxxxxxxx>
In-reply-to: <Pine.SGI.4.40.0308061004070.28401-100000@rattle.melbourne.sgi.com>
References: <Pine.SGI.4.40.0308061004070.28401-100000@rattle.melbourne.sgi.com>
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030612
Ken McDonell wrote:

On Tue, 5 Aug 2003, Alan Hoyt wrote:



Line 64 was changed from LOCALHOSTNAME=`hostname` LOCALHOSTNAME=`hostname -s`



At that point we need the short form of the hostname, and on some systems hostname returns the fully qualified domain name, while hostname -s returns the short name.



What was the logic behind this change?


I haven’t tested it exhaustively but it seems to work correctly either way – with a fully qualified name or a short name. That's why the addition of the -s flag wasn't clear to me.



- Alan -



<Prev in Thread] Current Thread [Next in Thread>