pcp
[Top] [All Lists]

Re: pmlogger_check.sh in 2.3.1-4

To: Paul Jackson <pj@xxxxxxx>
Subject: Re: pmlogger_check.sh in 2.3.1-4
From: Alan Hoyt <ahoyt@xxxxxxxxxxxxx>
Date: Wed, 06 Aug 2003 00:11:04 -0500
Cc: Ken McDonell <kenmcd@xxxxxxxxxxxxxxxxx>, pcp@xxxxxxxxxxx
In-reply-to: <20030805173246.4dd90d5d.pj@xxxxxxx>
References: <3F303B27.4050503@xxxxxxxxxxxxx> <Pine.SGI.4.40.0308061004070.28401-100000@xxxxxxxxxxxxxxxxxxxxxxxx> <20030805173246.4dd90d5d.pj@xxxxxxx>
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030612
Paul Jackson wrote:

LOCALHOSTNAME=`hostname -s`
...
on Solaris which resuls in the host name being set to "-s".

The rest of this thread makes sense, but this part, about setting
hostname to "-s", baffles me.  I'd expect it to get set to whatever was
the output (to fd == 1) of:

 hostname -s

It is being set to the output of the above - and on Solaris hostname doesn't know about the -s option (or any options at all) and interprets this as a request
to set the hostname to "-s" which it diligently does.

- Alan -





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