Advertisement
xangin

Untitled

Sep 23rd, 2022
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. #請填入你的line notify token
  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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement