2021-10-25 02:08:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# This is an example shell script showing how to consume a ntfy.sh topic using
|
|
|
|
# a simple script. The notify-send command sends any arriving message as a desktop notification.
|
|
|
|
|
|
|
|
while read msg; do
|
2021-11-03 01:15:21 +00:00
|
|
|
[ -n "$msg" ] && notify-send "$msg"
|
2021-10-25 02:08:06 +00:00
|
|
|
done < <(stdbuf -i0 -o0 curl -s ntfy.sh/mytopic/raw)
|