Re: {bb} big brother monitoring a df that it shouldn't be
John Horne <[email protected]> Tue, 11 Mar 2008 21:56:10 +0000
| Newsgroups | gmane.network.bb4.general |
|---|---|
| Organization | University of Plymouth |
| Message-ID | <[email protected]> |
On Tue, 2008-03-11 at 17:03 -0400, Scott Mohnkern wrote:
> Well, I think I figured it out.
>
> Somewhere big brother is doing a:
>
> sort +4 <filename>
>
> and I need it to do a:
>
> sort -k 4 <filename>
>
> $BBHOME/etc/bbsys.sh has a
>
> DFSORT="4"
>
> But changing this to "-k 4" generates:
>
> /bin/sort: open failed: +-k 4: No such file or directory
>
> So the question is, what do I need to change so instead of doing a
> sort +4 <filename> it does a sort -k 4 <filename>
>
You need to change the bin/bb-disk.sh file. In there you will find lines
such as:
eval "$DFCMD | $EGREP \"$DFUSE\" | $EGREP -v \"$DFEXCLUDE\" | $SORT
\"+${DFSORT}\" > $BBTMP/DFOUT.$$"
and
wclen1=`eval "$DFCMD | $EGREP \"$DFUSE\" | $EGREP -v \"$DFEXCLUDE\"
| $SORT \"+${DFSORT}\" | $WC"`
(This is from BB 1.9i so your files may be a bit different.) As you can
see they have the sort command, and you need to change it to whatever
suits your system. In my case I change the sort command part to use the
'-nk' options (e.g. ...$SORT -nk \"+${DFSORT}\") as I am using Fedora.
John.
--
---------------------------------------------------------------
John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914
E-mail: [email protected] Fax: +44 (0)1752 233839
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:[email protected] with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.