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

Re: Bug#695765: ITP: fsniper -- daemon to run scripts based on changes in files monitored by inotify

Arno Töll wrote 2012-12-13 00:19:

On 12.12.2012 13:50, Alex 'AdUser' Z wrote:
fsniper is a lightweight daemon, that watches given set fo files and/or
 directories with inotify, and executes commands on inotify events.
This may be useful for seting up self-managed upload, temp or spool dirs.

How is this better/different to incron(d) [1]?

[1] http://packages.debian.org/sid/incron

Well, for me, killer features was (compared to incrond):
* chain handlers (one event may have multiple handlers, which executes untill one returns zero code)
  * built-in filtering support:
    * file extension
    * mime-type
    * filename regexps
  * automatically watch newly created directories
  * written in pure c (instead c++)

All this, except last two may be implemented inside event handler, but I'm quite lazy to reinvent wheels. :-)

Reply to: