Re: way of reducing buffer size of stdout
From: Amol (amol_at_hotmail.com)
Date: 11/30/04
- Next message: Frank Hilwalserbäumer: "Re: detection of a file's storage period in a directory"
- Previous message: Paul Colquhoun: "Re: Yet another "stop the bash quoting" post"
- In reply to:(deleted message) Michael Vilain
: "Re: way of reducing buffer size of stdout" - Next in thread: Hans Horn: "Re: way of reducing buffer size of stdout"
- Reply: Hans Horn: "Re: way of reducing buffer size of stdout"
- Reply: Stephane CHAZELAS: "Re: way of reducing buffer size of stdout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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...
>
>
>
- Next message: Frank Hilwalserbäumer: "Re: detection of a file's storage period in a directory"
- Previous message: Paul Colquhoun: "Re: Yet another "stop the bash quoting" post"
- In reply to:(deleted message) Michael Vilain
: "Re: way of reducing buffer size of stdout" - Next in thread: Hans Horn: "Re: way of reducing buffer size of stdout"
- Reply: Hans Horn: "Re: way of reducing buffer size of stdout"
- Reply: Stephane CHAZELAS: "Re: way of reducing buffer size of stdout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]