linuxunixfile-iolisteners

Monitor Directory for Changes


Much like a similar SO question, I am trying to monitor a directory on a Linux box for the addition of new files and would like to immediately process these new files when they arrive. Any ideas on the best way to implement this?


Solution

  • Look at inotify.

    With inotify you can watch a directory for file creation.