delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/22/17:38:27

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
To: joerg DOT pleumann AT trantor DOT de
CC: cygwin AT cygwin DOT com
In-reply-to: <007001c11295$bbada130$5c00a8c0@ls10pc50> (message from
=?Windows-1252?Q?J=F6rg_Pleumann?= on Sun, 22 Jul 2001 12:03:56 +0200)
Subject: Re: Tail doesn't follow
From: mharig AT erols DOT com
References: <007001c11295$bbada130$5c00a8c0 AT ls10pc50>
Message-Id: <E15OQvO-0000uZ-00@smtp03.mrf.mail.rcn.net>
Date: Sun, 22 Jul 2001 17:38:07 -0400

> From: =?Windows-1252?Q?J=F6rg_Pleumann?= <joerg DOT pleumann AT trantor DOT de>
> Date: Sun, 22 Jul 2001 12:03:56 +0200
> 
> Hello,
> 
> I'm having a problem with Cygwin's "tail" utility. I use it to monitor a log
> file of a program running on a Linux machine from a Win2K machine. The Linux
> machine's file system is made available via Samba. The problem is: While the
> initial output of 10 lines (or whatever I specify) is happily printed, newly
> appended lines never make it to the screen. In other words, "tail -f"
> doesn't follow. I've already tried "--follow=name", but to no avail.
> 
> Any ideas?
> 
> Bye, Jörg
> 

I usually use "less" on log files of running processes.  Once "less"
is displaying the output, you can press Shift-f (capital 'f') to have
it follow the output.  To get it to stop following the output, type
Ctrl-c.  You can repeat this again and again.

The problem I found long ago (which might be fixed by now) is that if
I ran "less" in the same bash shell/window as the process I was
monitoring (that is, if I ran, say, a build in the background via '&')
then this would abort the process.  I was able to get around this
problem by running "less" in a separate bash shell/window from the
process I was monitoring.  This bug might have been fixed in a recent
Cygwin release, but I haven't checked it.

As far as your "tail -f" problem is concerned, I don't know the reason
for it or a quick fix, but you might try running "tail -f" in a
separate bash shell from the process you are monitoring, just as I do
with "less".  Or, you might try using "less".

Good luck!

-- 
## Mark Harig
## Email: mharig AT erols DOT com



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019