Re: {bb} big brother monitoring a df that it shouldn't be

Philip Clark <[email protected]> Tue, 11 Mar 2008 22:04:57 +0000
Newsgroups gmane.network.bb4.general
Message-ID <1205273097.6270.21.camel@drebin>
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>

It's actually a little more complex than that. The input is being
piped in and the "new" sort will only accept that if you specify a
"-" as the file name. What was "sort +4" now needs to be something
like "sort -n -k 5 -". The "5" is because the offset has also likely
changed.

> $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'll need to edit the client script. Exactly where you need to make
the change is difficult to say. I can't accurately remember how things
where arranged in 1.6e1. If you grep for SORT in the client scripts, you
should be able to identify the correct location(s). Essentially,
anything that uses the sort command should be investigated.

Cheers, Phil.



--
I've never wished a man to meet his maker before his time.
But, there are a few obituaries that I've read with approval.
(Leslie Nielsen)


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