Verified Commit 80beca34 authored by Fabio Bonfiglio's avatar Fabio Bonfiglio 💾
Browse files

Notification on stop

parent f1d8a48e
......@@ -108,4 +108,12 @@ while [ $RUNME -eq 1 ]; do
sleep 1
done
if [ $CHATID -ne 0 ]; then
curl -s \
-d chat_id=${CHATID} \
-d text="\`$(whoami)\` has stopped network connectivity monitoring on \`$(hostname)\` at $(date --iso-8601=seconds)." \
-d parse_mode="Markdown" \
https://api.telegram.org/bot1196862707:AAHYGqyRzO4mNWrOGBRT6Vz-JXom6e80P9o/sendMessage \
>> /dev/null
fi
less $DESTINATION
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment