Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. inotifywait -m "$HOME/bin" -e close_write -e moved_to --format '%w%f' | while read -r fname; do chmod +x "$fname"; done
  2.  
  3. inotifywait -m "/path/to/bin" -e close_write -e moved_to --format '%w%f' |
  4. while read -r fname
  5. do
  6. chmod +x "$fname"
  7. done
  8.  
  9. apt-get install inotify-tools
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement