Pushbullet: How to Send a message from Bash

Pushbullet: How to Send a message from Bash

With this simple one line of code it is possible to send a message to your Pushbullet account from the Linux terminal. This is great if you want your BASH script to message you when a specific task completes or fails.

All that is required is a Pushbullet token that you can obtain from the settings within your PushBullet Account.

This can be found here https://www.pushbullet.com/#settings

pushbullet settings

Now paste the code to your terminal replacing the pushbullettoken with your own token and changing the body and title. It is that simple, give it a try.

curl --silent -u """pushbullettoken"":" -d type="note" -d body="Body of Message" -d title="Subject Of Message" 'https://api.pushbullet.com/v2/pushes'

There is a bunch of other stuff you can do using the API. More info can be found form the Pushbullet API docs.

https://docs.pushbullet.com

Leave a Reply

2 Comments on "Pushbullet: How to Send a message from Bash"

Leave a Reply

Sort by:   newest | oldest | most voted
Ross Holmberg
Guest

Thanks for this. A very simple guide for something so powerful. I’ve been trying to make more use of PushBullet for a while, and I think I’m about to start loving it 🙂

fanuch
Guest

I knew when I saw your name in the URL the guide would be succinct, and simple. Big fan.

wpDiscuz