From owner-freebsd-questions Wed Nov 1 22:59:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 9E77C37B4F9 for ; Wed, 1 Nov 2000 22:59:54 -0800 (PST) Received: from bonsai.knology.net (user-24-214-88-8.knology.net [24.214.88.8]) by mail.hiwaay.net (8.11.0/8.11.0) with ESMTP id eA26xq715467; Thu, 2 Nov 2000 00:59:52 -0600 (CST) Received: (from steve@localhost) by bonsai.knology.net (8.11.0/8.9.3) id eA26xqo38723; Thu, 2 Nov 2000 00:59:52 -0600 (CST) (envelope-from steve) Date: Thu, 2 Nov 2000 00:59:46 -0600 From: Steve Price To: Matt Simerson Cc: questions@FreeBSD.ORG Subject: Re: Suggestion for making FreeBSD better. Message-ID: <20001102005946.C19243@bonsai.knology.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from matt@cadillac.mi.us on Thu, Nov 02, 2000 at 01:55:06AM -0500 X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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