diff options
-rwxr-xr-x | kvmx | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -2582,8 +2582,19 @@ function kvmx_inotify { exit 1 fi + # Exclude "access", "close", "close_write", "close_nowrite", "open" from the list of events + local args + local event + local events="modify attrib moved_to moved_from move" + events="$events move_self create delete delete_self unmount" + + # Build arg list of events + for event in $events; do + args="$args -e $event" + done + # Dispatch - while inotifywait -r $watched; do + while inotifywait $args -r $watched; do echo "$command" | kvmx_ssh done } |