This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: tail -f and pipes with bash shell
- From: Lev Bishop <lev dot bishop at gmail dot com>
- To: Peter Ekberg <peda at axentia dot se>
- Cc: cygwin at cygwin dot com
- Date: Thu, 12 May 2005 20:06:25 -0400
- Subject: Re: tail -f and pipes with bash shell
- References: <90459864DAD67D43BDD3D517DEFC2F7D05AF26@axon.Axentia.local>
- Reply-to: Lev Bishop <lev dot bishop at gmail dot com>
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/