pcp
[Top] [All Lists]

Re: pmlogger_check.sh in 2.3.1-4

To: David Douthitt <DDouthitt@xxxxxxxxx>
Subject: Re: pmlogger_check.sh in 2.3.1-4
From: Ken McDonell <kenmcd@xxxxxxxxxxxxxxxxx>
Date: Thu, 7 Aug 2003 09:36:07 +1000
Cc: ahoyt@xxxxxxxxxxxxx, "<PCP" <pcp@xxxxxxxxxxx>
In-reply-to: <sf3136ca.056@xxxxxxxxxxxxxxxx>
Sender: pcp-bounce@xxxxxxxxxxx
PCP does not use ksh, sorry.

On Wed, 6 Aug 2003, David Douthitt wrote:

> If you are using ksh, why not this?
>
> LOCALHOSTNAME=`hostname`
> LOCALHOSTNAME=${LOCALHOSTNAME%%.*}
>
> That removes the need for a pipe and for a sed run...
>
> David Douthitt
> CUNA & Affiliates
> UNIX Systems Administrator
> LPI Level 1, Linux+
> ddouthitt@xxxxxxxxx
>
>
> >>> Ken McDonell <kenmcd@xxxxxxxxxxxxxxxxx> 8/6/03 5:05PM >>>
> Thanks Alan, for confiming this was not a gratuitous change.
>
> Keith Owens suggested this quick and robust workaround ...
>
>       LOCALHOSTNAME=`hostname | sed -e 's/\..*//'`
>
> I'm planning on checking this into the code base.
>
> On Wed, 6 Aug 2003, Alan Hoyt wrote:
>
> > Alan Hoyt wrote:
> > ...
> >
> > Ok, the logger control file specifies the logger instance
> (controlling
> > pmlogger_check) and this change fixed the inability to stipulate
> short
> > names in the control file - so it's necessary to work for all cases.
>
>
>
>


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