forked from ahurac/dotfiles
Ajout : watchbatch
This commit is contained in:
parent
5156fa5201
commit
edf168c7dc
1 changed files with 7 additions and 0 deletions
7
bin/watchbatch
Executable file
7
bin/watchbatch
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
todo=$(cat)
|
||||
|
||||
inotifywait --recursive --monitor -e create -e attrib -e modify -e move -e delete -- "$@" | \
|
||||
while read -r _unused; do
|
||||
eval "$todo"
|
||||
done
|
Loading…
Reference in a new issue