bash/for_smollest/sender.sh

10 lines
242 B
Bash
Raw Normal View History

2023-02-14 18:22:28 +00:00
# #!/data/data/com.termux/files/usr/bin/env bash
host="$(grep 'Host ' .ssh/config | sed 's/Host //g' )"
echo "Sends message to $host "
echo
echo "Type message: "
read -r message
ssh "$host" notify-send -u critical "MESSAGE" " '$message' "