Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. sudo apt-get install inotify-tools
  2.  
  3. inotify-wait /path/to/directory --recursive --monitor
  4.  
  5. -m, --monitor
  6. Instead of exiting after receiving a single event, execute
  7. indefinitely. The default behaviour is to exit after the first
  8. event occurs.
  9. -r, --recursive
  10. Watch all subdirectories of any directories passed as arguments.
  11. Watches will be set up recursively to an unlimited depth. Sym‐
  12. bolic links are not traversed. Newly created subdirectories
  13. will also be watched.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement