-
-
Save redism/86052de968426c3d4bf2c454671f38ee to your computer and use it in GitHub Desktop.
Sending simple push to your device after long-running process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BODY=${1:-"Finished"} | |
DATA='{"title":"Done","type":"note","body":"'$BODY'"}' | |
curl --header 'Access-Token: <YOUR_TOKEN_HERE>' \ | |
--header 'Content-Type: application/json' \ | |
--data-binary $DATA \ | |
--silent \ | |
--request POST \ | |
https://api.pushbullet.com/v2/pushes > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage :
sleep 5 ; send done
, and take some coffee.