Skip to content

Instantly share code, notes, and snippets.

@redism

redism/send

Created Jan 19, 2018
Embed
What would you like to do?
Sending simple push to your device after long-running process
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
@redism

This comment has been minimized.

Copy link
Owner Author

@redism redism commented Jan 19, 2018

chmod +x send
mv send /usr/local/bin

Usage : sleep 5 ; send done, and take some coffee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment