View difference between Paste ID: X7fPw56B and J0Z6VA4F
SHOW: | | - or go back to the newest paste.
1
#!/bin/sh
2
3
#請填入你的line notify token
4-
line_token="lONhkEnPTDpIpAvNDNkB3QCBc5XCmrOiqnMrQLcerFp"
4+
line_token="token"
5
6
#Line傳出的文字訊息,enter可提供換行
7
msg="警告!!$1級地震,將於$2秒後到達!!"
8
9
#這裡不用動,謝謝配合
10
curl -X POST https://notify-api.line.me/api/notify \
11
       -H "Authorization: Bearer $line_token" \
12
       -F "message=$msg"