BB Unix Network Monitor - Message

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

Re[2]: {bb} tweak for HP-UX sites



 DF="eval /bin/bdf | sed -e '/^[^b\t][^b\t]*$/{ N ; s/[b\t]*\n[b\t]*/b/ ; 
}'"

where as below -- the b signifies a space and a \t signifies a tab. All other
blank white spaces are single spaces. 

The usage of both the space and the tab are not strictly necessary as the
current HPUX $DF (/bin/bdf) command appears to use lots of spaces and not tabs.
I included both spaces and tabs in the patterns out of laziness and extreme
paranoid misstrust. 

Umm, guess maybe sed should be $SED too... or possibly expand it out with
correct OS dependent path (/usr/bin/sed for HPUX).

It would be nice if some of the HP-UX users would check this out on their boxes
to make sure it covers their variants before including it into the official BB
release. There are some other HP-UX BB users out there, .... right? 

Major oops on my part - this pertains to BB versions through 1.2b. I am remiss
in grabbing the latest and greatest BB 1.3 ( have to fortify myself with strong
drink before going through all the differences in the official BB release(s) and
our version that looks like roadkill). Was holding off until all the PURPLEDELAY
stuff settled out. Do not know how this fix pertains to the BB version 1.3 if at
all.

____________________Reply Separator____________________
Subject:    Re: {bb} tweak for HP-UX sites 
Author: <bb@bb4.com>
Date:       11/30/1999 10:21 AM

Mark.Deiss@acs-gsg.com wrote:
> 
> I thought I had previously mailed out this fix.... but then again maybe not.
> 
> On the HP-UX boxes (ver 10.20), the $DF command (/bin/bdf) can generate two
> lines for a particular filesystem if the volume name gets too long. Upshot is
> that the BB parsing of the argument list gets hosed up. The following is a
quick
> patch to correct for this quaint HP feature:
> 
> DF="eval /bin/bdf | sed -e '/^[^     ][^     ]*$/{ N ; s/[   ]*\n[   ]*/ / ;
}'"

in the [^    ] constructs (and any that have space) can you tell me
where there's a space and where there's a tab

i.e.

[b\t]

where b is a space and \t is a tab.

I've just looked at the code and I'm not sure if [^     ] is really
that or just [^b\t] (again b being a space).

thanks
-- 
Robert-Andre Croteau        BSD,MOTU                robert@unix.sh
Services Conseils Informatiques MOTU Inc.         robert@motu.ca
(514) 465-3057                                        rcroteau@videotron.ca
http://www.motu.ca/                             http://www.bb4.com
        Si le bonheur ne s'achete pas alors louez le.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index