4 ms·
[ $1 ] || { echo "Notify what?"; exit; } curl -X "POST" "https://push.techulus.com/api/v1/notify/$PUSHKEY" \ -H 'Content-Type: application/json; c
by atum47 6y ago
[ $1 ] || { echo "Notify what?"; exit; }
curl -X "POST" "https://push.techulus.com/api/v1/notify/$PUSHKEY" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{ "title": "Linux", "body": "'$1'" }'
echo;
I use this app[1] that notifies my cellphone, so I wrote this bash script that I call when a long task is done, so it notify me when I'm away.
1 - https://push.techulus.com/ https://push.techulus.com/