www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
Subject: | RE: tail -f and pipes with bash shell |
Date: | Fri, 13 May 2005 02:13:44 +0200 |
Message-ID: | <90459864DAD67D43BDD3D517DEFC2F7D05AF27@axon.Axentia.local> |
From: | "Peter Ekberg" <peda AT axentia DOT se> |
To: | "Lev Bishop" <lev DOT bishop AT gmail DOT com> |
Cc: | <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id j4D0EA6W030288 |
Lev Bishop wrote: > 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 Yes, that works for this slimed down example, but probably not for the real work, as that includes several other commands that do not all have a --line-buffered equivalent. Thanks for you time though. I'll drop this now, it's getting more complex than the task deserves. I can get by as is... Cheers, Peter -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |