On 07/11/07 10:23, Radu-Cristian Fotescu wrote:
> It's not provided by EL5 nor by EL4, but FAM (the File Alteration Monitor
> )
> is an alternative solution that works regardless of what kernel you have.
Or use gamin (gam_server et.al.), which seem to be Red Hat preferred
solution for this task. This one has C (same interface as FAM) and
python bindings, and supposedly uses whatever mechanism the kernel
offers for watching files or directories, eventually falling back to
polling.
On the other hand, this may be total overkill for watching a single
directory every now and then... especially if you can live with a delay,
and are not power-constrained (so spurious wakeup events don't matter).
K.I.S.S(cientifcLinuxUser).
Regards
jan