From edf168c7dcf7b8b38ccb8be197ebd7aa536dbfcb Mon Sep 17 00:00:00 2001 From: Ahurac Date: Sat, 8 Jun 2024 19:24:31 +0200 Subject: [PATCH] Ajout : watchbatch --- bin/watchbatch | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/watchbatch diff --git a/bin/watchbatch b/bin/watchbatch new file mode 100755 index 0000000..9656839 --- /dev/null +++ b/bin/watchbatch @@ -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