aboutsummaryrefslogtreecommitdiff
path: root/2022/watch
diff options
context:
space:
mode:
authorj-james2022-11-30 21:56:44 +0000
committerj-james2022-11-30 21:56:44 +0000
commit241862464a8ab03178aee3a270b362bc889a2599 (patch)
tree2cb4e70ff63d4db348cb2cdf88ad1a0b0c960337 /2022/watch
parentf3be246c4e7d79df669fbf3c48710620d1c361d5 (diff)
Create watch script
Diffstat (limited to '2022/watch')
-rwxr-xr-x2022/watch7
1 files changed, 7 insertions, 0 deletions
diff --git a/2022/watch b/2022/watch
new file mode 100755
index 0000000..3792b58
--- /dev/null
+++ b/2022/watch
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+source "vars"
+
+while inotifywait --quiet --event modify "~/watched_file"
+do ./run
+done