Simple bash script that wraps inotifywait and writes events to stdout or a named pipe.