title: Notify of new files with inotify
body: <p>I need to make a script that notifies a log file when a new file enters a directory. I would like to use inotify as a shell script or PHP, most examples I have found are in C. Can someone give me an example of this?</p>
  
  <p>In addition, can inotify know when a file is done being copied?</p>