Daemon what detects file changing

September 9, 2014 1.2k views

I'm looking for some daemon what looks at some folder and makes notification if files was changed there

1 comment
2 Answers

Hi Dmgorp,

In Linux systems, you can use incron, which is a crontab scheduler acting on files and directories modifications . This tool can be used just as a cron job (editing with incrontab -e), and manages the following events :

IN_ACCESS File was accessed (read) (*)
IN_ATTRIB Metadata changed (permissions, timestamps, extended attributes, etc.) (*)
IN_CLOSE_WRITE File opened for writing was closed (*)
IN_CLOSE_NOWRITE File not opened for writing was closed (*)
IN_CREATE File/directory created in watched directory (*)
IN_DELETE File/directory deleted from watched directory (*)
IN_DELETE_SELF Watched file/directory was itself deleted
IN_MODIFY File was modified (*)
IN_MOVE_SELF Watched file/directory was itself moved
IN_MOVED_FROM File moved out of watched directory (*)
IN_MOVED_TO File moved into watched directory (*)
IN_OPEN File was opened (*)

Hope this could help,



it's that I looked for. Thanks

Have another answer? Share your knowledge.