Re: inotify-enabled apps [was: inotail]

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

 



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/

--
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux