bash/for_smollest/sender.sh
cheesus_crust 9581bcc174 lets
2023-02-14 21:22:28 +03:00

10 lines
242 B
Bash

# #!/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' "