aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx13
1 files changed, 12 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index e912f84..b5098ea 100755
--- a/kvmx
+++ b/kvmx
@@ -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
}