Re: way of reducing buffer size of stdout

From: Amol (amol_at_hotmail.com)
Date: 11/30/04


Date: Tue, 30 Nov 2004 16:59:27 +1100

The problem I have is I think unix is buffering the output of a grep while
im trying to write its output to a file.

I grep for a certain string then redirect it to a file, but its not
directing it to the BarringListChange.log file.

Below is the command I am executing

./tail -f consolelogs log1 | grep BarringListChange >
/export/home/telorb/eamonar/BarringListChange.log

thanks for the help

<Michael Vilain <vilain@spamcop.net>> wrote in message
news:vilain-D15D6C.21351829112004@news.giganews.com...
> In article <cogpk2$bks$1@newstree.wise.edt.ericsson.se>,
> "Amol" <amol@hotmail.com> wrote:
>
> > is it possible to reduce the buffer size of stdout?
>
> It depends on the system. It's part of the standard c library (libc).
> So if you have a Linux, you could recompile it with a smaller buffer
> size. But that's a system-wide change that might affect many things.
> Vendor-specific implementations I would sincerely doubt you could do
> this.
>
> Why do you feel you need to do this? What business problem are you
> trying to solve?
>
> --
> DeeDee, don't press that button! DeeDee! NO! Dee...
>
>
>


Quantcast