BB Unix Network Monitor - Message

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

RE: {bb} how does bb-dftab work?



Hi,

When bb-disk.sh tries to interpret the output of "df", it usually assumes
that DISKNAME=$6 . This yields "DISKNAME=/Volumes/Mac"...

1) The simplest solution would be to rename that disk so that it would not
use any spaces in the name.

2) Another solution would be a modification of df to something like this:

$DF | while read line
do
	if [ $# -ge 6 ]
	then
		set bogus $line ; shift
		part1="$1 $2 $3 $4 $5"
		shift 5
		part2=`echo "$@" | sed 's/ /_/g'`
		echo "$part1 $part2"
	fi
done

This code will replace all spaces with an underscore.
Maybe this could be a df() function.

Modify bb-dftab accordingly

3) Or just ignore the disk

DFEXCLUDE="^/Volume/Mac"



p.s. This is not going to be your last headache caused by spaces.


> -----Original Message-----
> From: Doctor Khumalo [mailto:doctortechie@hotmail.com]
> Sent: 24. helmikuuta 2005 17:09
> To: bb@bb4.com
> Subject: Re: {bb} how does bb-dftab work?
> 
> 
> This does not work.
> 
> I don't think I mentioned this but this is an Apple OS X server.
> 
> 
> 
> >From: Daniel J McDonald <dan.mcdonald@austinenergy.com>
> >Reply-To: bb@bb4.com
> >To: bb list <bb@bb4.com>
> >Subject: Re: {bb} how does bb-dftab work?
> >Date: Thu, 24 Feb 2005 08:24:27 -0600
> >
> >On Thu, 2005-02-24 at 13:55 +0000, Doctor Khumalo wrote:
> > > I've set up bb-dftab with the following entry
> > >
> > >   localhost:/Volume/Mac OS X Install Disc 1:101
> > >
> > > but it still keeps reporting an error when it reaches 96% 
> (see the 
> >excertp
> > > below from a df)
> > >
> > >
> > > /dev/disk1s3             489963440 199568576 290394864    41%
> > > /Volumes/Data
> > > /dev/disk0s3             160574256  95012776  65049480    59%    /
> > > /dev/disk2s3               8191912   7905176    286736    96%
> > > /Volumes/Mac OS X Install Disc 1
> > >
> > >
> > > I presume it doesn't like the spaces in the directory 
> path. Any way 
> >around
> > > this?
> >The usual way to escape spaces is with a \
> >
> > >
> > > _________________________________________________________________
> > > FREE pop-up blocking with the new MSN Toolbar - get it now!
> > > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> > >
> > > --
> > > 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> > > 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.
> 
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now! 
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> 
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> 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