Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <ba40711f050512170655517f7a@mail.gmail.com>
Date: Thu, 12 May 2005 20:06:25 -0400
From: Lev Bishop <lev.bishop@gmail.com>
Reply-To: Lev Bishop <lev.bishop@gmail.com>
To: Peter Ekberg <peda@axentia.se>
Subject: Re: tail -f and pipes with bash shell
Cc: cygwin@cygwin.com
In-Reply-To: <90459864DAD67D43BDD3D517DEFC2F7D05AF26@axon.Axentia.local>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <90459864DAD67D43BDD3D517DEFC2F7D05AF26@axon.Axentia.local>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j4D06jOF029705

Try "grep --line-buffered" to get grep to flush output after every
line. There is a performance penalty for doing this. I don't know why
you don't see the buffering when grep's stdout isn't redirected.
Perhaps grep (or the std library) removes/reduces buffering in the
case the output is a terminal.

Lev

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


