Tracking a file in real-time

Tony Nelson tonynelson at georgeanelson.com
Sat Oct 13 17:22:44 UTC 2007


At 7:55 AM -0400 10/13/07, Garry T. Williams wrote:
>On Thursday 11 October 2007 08:50:31 FS wrote:
>> I have a need to track changes to a file being made in real-time.
>
>Curtis mentioned inotify(7).  Here's a small sample program using this
>interface.

AFAICT, inotify cannot solve the OP's problem.  He already knows the file.
He needs to know /where/ and /what/ changed in the file.  inotify can
optimize the actual solution so it won't need polling.
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the users mailing list