mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-03-11 03:07:39 +08:00
12 lines
217 B
Bash
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
|