Guest User

Untitled

a guest
Nov 19th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # Install the inotifywait package, on Fedora:
  2. $ sudo dnf install inotify-tool
  3.  
  4. # Run inotify-wait on a loop
  5. while true; do inotifywait -e modify -r <folder to watch>; < curstom ; commands> ; done
  6.  
  7. # eg: recompile a progam when a file is changed:
  8. while true; do inotifywait -e modify -r sources/; make clean; make;done
Add Comment
Please, Sign In to add comment