From owner-cvs-all@FreeBSD.ORG Thu Nov 4 22:42:29 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FBFC16A4CE; Thu, 4 Nov 2004 22:42:29 +0000 (GMT) Received: from mx1.originative.co.uk (freebsd.gotadsl.co.uk [81.6.249.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A92643D58; Thu, 4 Nov 2004 22:42:26 +0000 (GMT) (envelope-from paul@originative.co.uk) Received: from localhost (unknown [127.0.0.1]) by mx1.originative.co.uk (Postfix) with ESMTP id 1AE3F15586; Thu, 4 Nov 2004 22:42:25 +0000 (GMT) Received: from mx1.originative.co.uk ([127.0.0.1])port 10024) with ESMTP id 42175-01; Thu, 4 Nov 2004 22:42:19 +0000 (GMT) Received: from [192.168.7.2] (myrddin [192.168.7.2]) by mx1.originative.co.uk (Postfix) with ESMTP id 135321556F; Thu, 4 Nov 2004 22:42:17 +0000 (GMT) From: Paul Richards To: Sam Leffler In-Reply-To: <200411041208.51978.sam@errno.com> References: <200411041918.iA4JIJsd028943@repoman.freebsd.org> <200411041208.51978.sam@errno.com> Content-Type: text/plain Message-Id: <1099608134.42071.6.camel@myrddin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 04 Nov 2004 22:42:15 +0000 Content-Transfer-Encoding: 7bit cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org cc: Paul Richards Subject: Re: cvs commit: src/usr.bin/tail extern.h forward.c tail.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Nov 2004 22:42:29 -0000 On Thu, 2004-11-04 at 20:08, Sam Leffler wrote: > On Thursday 04 November 2004 11:18 am, Paul Richards wrote: > > paul 2004-11-04 19:18:19 UTC > > > > FreeBSD src repository > > > > Modified files: > > usr.bin/tail extern.h forward.c tail.c > > Log: > > Add support for following more than one file i.e. > > tail -f file1 file2 > > > > Revision Changes Path > > 1.9 +10 -1 src/usr.bin/tail/extern.h > > http://cvsweb.FreeBSD.org/src/usr.bin/tail/extern.h.diff?r1=1.8&r2=1.9 > > 1.35 +160 -88 src/usr.bin/tail/forward.c > > http://cvsweb.FreeBSD.org/src/usr.bin/tail/forward.c.diff?r1=1.34&r2=1.35 > > 1.18 +30 -7 src/usr.bin/tail/tail.c > > http://cvsweb.FreeBSD.org/src/usr.bin/tail/tail.c.diff?r1=1.17&r2=1.18 > > Why is this better than > > tail -f file1& > tail -f file2 > > Sam A few reasons. Main one is that it's a single process. If you debug webservers a lot you'd like to be able to do: vi httpd.conf apachectl restart; tail -f errors access ctrl C and then start the cycle again. With your suggestion it's a bit of a pain to also have to kill the background job which has a habit of spitting out output when you really don't want it. It's more efficient, though that's a marginal argument :-) You can do things like find /weservers/logs -name access |xargs tail -f So, on the whole I think it provides some useful new functionality. Paul.