Subject: Re: tail follow multiple files?
To: None <>
From: Xin LI <>
List: tech-userlevel
Date: 07/04/2005 14:38:30
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


> > Since tail only processes a single file at a time, tail -f on multple
> > files just doesn't make sense.
> That's funny; it makes sense to me - and, apparently, a bunch of other
> people....
> > If you want the merged output from many files just run multiple
> > copies of tail -f in the background....
> ...and then how to suspend them all, and resume them all, together?
> I suppose sh -c '(for f in file1 file2 file3; do echo tail -f "$f &";
> done; echo wait) | sh' works, after a fashion.  But that doesn't ID the
> file -f-generated output belongs to.

Just FYI, here are the original FreeBSD commits to implement kqueue
based tail -f on multiple files, which you may have interest to take a
look at:

Xin LI <delphij delphij net>

Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

Version: GnuPG v1.4.1 (FreeBSD)