[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: inotify-enabled apps [was: inotail]



Toshio Kuratomi wrote:

I don't think it's a cron replacement.  It's similarity to cron is that
it's a daemon that invokes another program based on a config file.

Where it differs is that cron starts programs when a specified time is
reached.  This daemon starts a program when a specified file is
modified.

Exactly.
Quotes from the README:

###################################################
Example 1: You need to run program 'abc' with the full file path as
an argument every time a file is changed in /var/mail. One of
the solutions follows:

/var/mail IN_CLOSE_WRITE abc $@/$#

Example 2: You need to run program 'efg' with the full file path as
the first argument and the numeric event flags as the second one.
It have to monitor all events on files in /tmp. Here is it:

/tmp IN_ALL_EVENTS efg $@/$# $&
###################################################

Sounds pretty useful to me.

And yes, I was wrong, it's not a cron fork.

--
Florin Andrei

http://florin.myip.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]