Check out the man page for incron and also this write-up by Nixcraft.
basic usage:
incrontab -e
In your editor of choice, follow this syntax:
<path-to-watch> <event mask> command
Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.
The HPR Website Design is released to the Public Domain.