bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tail --recursive


From: Jim Meyering
Subject: Re: tail --recursive
Date: Thu, 13 Nov 2008 22:23:30 +0100

Simon Windows <address@hidden> wrote:
> Matthew Woehlke wrote:
>> Simon Windows wrote:
>>> I've attached a modified version of tail.c from coreutils-6.12.The
>>> changes are fairly small but will look a lot bigger in a diff as I've
>>> split tail_forever() into two functions so it can be called recursively.
>>
>> Your attachment seems to be missing?
>
> Let's try that again.
>
> modified tail.c from coreutils-6.12 is actually attached this time.
> /* tail -- output the last part of file(s)
>    Copyright (C) 1989, 90, 91, 1995-2006, 2008 Free Software Foundation, Inc.

Thanks for the contribution.
I haven't looked at it at all yet,
but wonder if you've considered using inotify?
That seems like that mechanism would be much more appropriate,
when tailing many files in an arbitrary hierarchy.

There are already a couple of inotify(7)-based versions
of tail.  I see one that's called inotail.

One of the most important parts of a new-feature suggestion
is the justification for it.  Why is your feature needed?
And can it be made robust?  I.e., what if there are more files
in the hierarchy than the maximum number of open file descriptors?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]