Skip to content

Instantly share code, notes, and snippets.

@redism
Created January 19, 2018 03:36
Show Gist options
  • Save redism/86052de968426c3d4bf2c454671f38ee to your computer and use it in GitHub Desktop.
Save redism/86052de968426c3d4bf2c454671f38ee to your computer and use it in GitHub Desktop.
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
Copy link
Author

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