Hacker News new | ask | show | jobs
by atum47 2023 days 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/