The inotify mechanism is provided by the kernel (2.6.13 or later) and is extremely efficient and does not require a polling loop.
Puppy now has the inotify-tools package, version 3.13, with utilities 'inotifywait' and 'inotifywatch'.
I recently used 'tail -f' to monitor a file, however that polls the file every 1 second. I might also put into Puppy 'inotail' which works like tail but uses the inotify mechanism.
Comments:Posted on 19 Jun 2008, 9:57 by BarryK
Just thought I would mention another utility that I stumbled across: 'since'.
since is a unix utility similar to tail. Unlike tail, since only shows the lines appended since the last time. It is useful to monitor growing log files
This could be handy in a script if you want to know if a file has changed since the last time you looked at it. You could look at its modify date and size of course, but 'since' will output the actual changed lines. Homepage:
I have not put this into Puppy.