virtual-dsm/src/socket.sh
2025-10-08 14:34:24 +02:00

12 lines
217 B
Bash

#!/usr/bin/env bash
set -Eeuo pipefail
path="/run/shm/msg.html"
inotifywait -m "$path" |
while read -r fp event fn; do
case "${event,,}" in
"modify" ) echo -n "s: " && cat "$path" ;;
esac
done