mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-22 19:33:27 +01:00
8 lines
282 B
Bash
8 lines
282 B
Bash
|
#!/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
|
||
|
notify-send "$msg"
|
||
|
done < <(stdbuf -i0 -o0 curl -s ntfy.sh/mytopic/raw)
|