Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2000 00:59:46 -0600
From:      Steve Price <sprice@hiwaay.net>
To:        Matt Simerson <matt@cadillac.mi.us>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Suggestion for making FreeBSD better.
Message-ID:  <20001102005946.C19243@bonsai.knology.net>
In-Reply-To: <Pine.BSI.4.21.0011020152200.22396-100000@www.cadillac.mi.us>; from matt@cadillac.mi.us on Thu, Nov 02, 2000 at 01:55:06AM -0500
References:  <Pine.BSI.4.21.0011020152200.22396-100000@www.cadillac.mi.us>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 02, 2000 at 01:55:06AM -0500, Matt Simerson wrote:
# 
# How about making tail smart enough to realize that the file it was
# watching just got rotated and that it should start over reading from the
# beginning of the file? Basic rule is, if the file size changes to zero,
# start over.

Doesn't 'tail -F some_file' do this already?  From the manpage:

  -F  The -F option implies the -f option, but tail will also check to
      see if the file being followed has been renamed or rotated.  The
      file is closed and reopened when tail detects that the filename
      being read from has a new inode number.  The -F option is ignored
      if reading from standard input rather than a file.

-steve


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001102005946.C19243>