2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

LINE Notifyでコマンドラインからメッセージを送る

Last updated at Posted at 2019-03-15

手順

ここでLINE Notifyを利用するのに必要となるトークンを発行します.

あとは以下のように記述すればOKです.

自分は,処理に時間のかかるプログラムを回してて,終わったらお知らせが欲しい時にこの通知機能をつけてます.
LINEなら携帯(出先)でも受け取ることができるので便利です.

line_notify.sh

#!/bin/bash

curl -X POST -H 'Authorization: Bearer ここにLINEから発行されるトークンを入れます' -F 'message=せどり終わったよ〜( ^ω^ ),はよ確認して〜♬' https://notify-api.line.me/api/notify

echo "\n\nLINEへの通知に成功しました\n"

実行例

example.png
2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?