|
From: | Matthew Woehlke |
Subject: | Re: tail --recursive |
Date: | Fri, 14 Nov 2008 14:04:46 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.16) Gecko/20080723 Fedora/2.0.0.16-1.fc9 Thunderbird/2.0.0.16 Mnenhy/0.7.5.0 |
Simon Windows wrote:
Jim Meyering wrote: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.I have looked at the inotify library as you suggested. I agree it would be a useful tool to use in tail as it removes the need to poll files and would make a recursive version much more efficient. I can also see there has been some discussion of using inotify in coreutils for this purpose. I think that issue is orthogonal to the recursive option I am proposing.
To point out the obvious... 'tail' works on most POSIX systems (and perhaps some that aren't). inotify works on... Linux. So an enhancement to tail might benefit users of AIX, Irix, OSF, etc. that don't have inotify, whereas iwatch is useless on such systems.
-- Matthew Please do not quote my e-mail address unobfuscated in message bodies. -- Person A: It's an ISO standard. Person B: ...And that means what? -- mal (http://theangryadmin.blogspot.com/2008/04/future.html)
[Prev in Thread] | Current Thread | [Next in Thread] |