inotify-tools

My new pup_event_frontend_d uses the 'inotifywatch' utility to watch a file that pup_event_backend_d writes to. This is how messages are sent from backend to frontend daemons.

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.

Posted on 19 Jun 2008, 9:39


Comments:

Posted on 19 Jun 2008, 9:57 by BarryK
since
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:

http://welz.org.za/projects/since

I have not put this into Puppy.