Advertisement
Guest User

maybe this?

a guest
Jan 13th, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. folder=~/random/test
  4.  
  5. inotifywait -m -q -e delete -e create -e move -e modify -r --format '%:e %w%f' $folder | while read file
  6.   do
  7.           notify-send "Modification" "$file is modified"
  8.                 done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement