LoginSignup
7
9

More than 5 years have passed since last update.

pushbullet で スマホorPCに通知を送る

Posted at

Pushbulletのアカウントページ https://www.pushbullet.com/#settings/account から、「AccessToken」をコピーします。

「AccessToken」を自分のものに置き換えて、以下のコマンドを実行します。

shell
AccessToken=xxxTHISxxxISxxxTOKENxxxxxxxxxxxx
TITLE="test_title"
BODY="test_body"

curl -u $AccessToken: https://api.pushbullet.com/v2/pushes -d type=note -d title="$TITLE" -d body="$BODY"

らくちんですね。

cronでシェルスクリプトを実行した時とか、ちょっと通知が欲しい時に便利かもしれない。
smtpサーバとかいらないから、sendmailコマンドよりもお手軽。

7
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
9