site  contact  subhomenews

inotify-tools

June 19, 2008 — BarryK
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'.

Comments

since
Username: BarryK
Just thought I would mention another utility that I stumbled across: 'since'. [i]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[/i] 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.


Tags: puppy