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: cygwin at cygwin dot com
- Date: Thu, 12 May 2005 18:54:28 -0400
- Subject: Re: tail -f and pipes with bash shell
- References: <90459864DAD67D43BDD3D517DEFC2F7D05AF1E@axon.Axentia.local>
- Reply-to: Lev Bishop <lev dot bishop at gmail dot com>
On 11/05/05, Peter Ekberg <peda@axentia.se> wrote:
> What is going on here?
My guess: "tail frame.log" closes its stdout as soon as it has read
the requested lines from the file, "tail -f frame.log" keeps its
stdout open, since it is waiting for new lines to be added to the
logfile. Cat is using some buffering on its stdin, so it tries to read
a buffer's worth of data at a time.
--
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/