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.
>
>
>
>
|