From b28259b353c3ee2d51a7cbdf0e90136ae846b68d Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 24 Sep 2023 20:33:22 -0400 Subject: add watchfile script --- programs/scripts/watchfile.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 programs/scripts/watchfile.sh (limited to 'programs/scripts') diff --git a/programs/scripts/watchfile.sh b/programs/scripts/watchfile.sh new file mode 100755 index 0000000..064a226 --- /dev/null +++ b/programs/scripts/watchfile.sh @@ -0,0 +1,2 @@ +#!/bin/sh +while inotifywait -e close_write $1; do $2; done -- cgit v1.2.1