file alteration monitor - gamin - dnotify - inotify



I need to monitor a directory for the creation of new files, then a
script should be launched (doing some stuff with the contents of the
file and after that the file should be removed).

I am using RHEL5, but I am having trouble finding information to set
it up. When I do a locate on inotify, denotify or gamin it returns a
list of files and directories so I reckon it is installed.
The examples on http://search.cpan.org/~mlehmann/Linux-Inotify2-1.1/Inotify2.pm
don't work because it cannot find Inotify or Inotify2. According to
some info gamin uses inotify but the 'locate gamin' only lists
dnotify.

Is there something that needs to be activated or installed before you
can use inotify or gamin/dnotify and where can I find a good manual
and examples ?

Thanx,

Pugi!

.



Relevant Pages

  • Re: Deskop performance
    ... > to have famd on your desktop - most likely). ... as the Debian packages have disabled inotify support. ... It's nevertheless easy to build your own inotify enabled gamin packages. ... University of Karlsruhe 76131 Karlsruhe, ...
    (Debian-User)
  • Re: famd hogs all CPU time
    ... >> Famd on my system sometimes hogged all my CPU time and system ... >> monitor shows ... now I use gamin on sid as an alternative to fam and I don't have this problem anymore. ... also, that's moving on the kernel side, 2.6.13 now uses inotify which is supported by gamin. ...
    (Debian-User)
  • Re: Tracking a file in real-time
    ... inotify cannot solve the OP's problem. ... sometimes multiple entries per second. ... but that only lists the entries being added. ... Perhaps inotify can resolve the OP's objection to "running diff against it ...
    (Fedora)
  • Solved: Re: making sure a file isnt being written/copied before moving
    ... I was looking at inotify in order to avoid ... having the script have to check the directories on a regular basis. ... puts "action: \t #" ... I have another script that rsync's the images to my ...
    (comp.lang.ruby)