BB Unix Network Monitor - Message

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

Re: {bb} BB and fedora core 5 disk full reports?



On Thu, 2006-03-30 at 08:05, LDAP wrote:
> The alt did work. What should be I modify in bb-disk.sh?
> 
> I tried commenting out the first eval statement and replacing it
> with the alt but now I'm getting error messages because of that
> 
> Wed Mar 29 23:00:05 2006 bb-local.sh /home/bb/bbc1.9e-btf/bin/
> bb-disk.sh: line 64: syntax error near unexpected token `('

The two lines in bb-disk.sh should look like this when changed:

  eval "$DFCMD | $EGREP \"$DFUSE\" | $EGREP -v \"$DFEXCLUDE\" |
$SORT --key=${DFSORT} - > $BBTMP/DFOUT.$$"

  wclen1=`eval "$DFCMD | $EGREP \"$DFUSE\" | $EGREP -v
\"$DFEXCLUDE\" | $SORT --key=${DFSORT} - | $WC"`

If you copy these from this mail, make sure that they are each
a single line because they will be "wrapped" onto two.

This works OK for me, but let me know if it still causes
problems.

I should also point out that, in order to preserve what I think is
the intended output (sorting on the % used column), I had to use:

  $SORT --key=${DFSORT} --numeric-sort -

and change DFSORT in bbsys.sh from 4 to 5.

Cheers, Phil.



-- 
Horse sense is the thing a horse has which keeps it from betting on
people. (W. C. Fields)

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