SCIENTIFIC-LINUX-USERS Archives

November 2007

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jan Iven <[log in to unmask]>
Reply To:
Date:
Wed, 7 Nov 2007 10:53:59 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
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

ATOM RSS1 RSS2