728x90
반응형
#!/bin/bash


#SLACK_CHANNEL="#채널명"
SLACK_USERNAME="[Bot] send from Bash shell"
SLACK_URL='https://hooks.slack.com/services/1234"
STRING="test"
#curl -X POST --data-urlencode "payload={\"channel\": \"$SLACK_CHANNEL\", \"username\": \"$SLACK_USERNAME\", \"text\": \"$STRING\"}" $SLACK_URL
curl -X POST --data-urlencode "payload={\"username\": \"$SLACK_USERNAME\", \"text\": \"$STRING\"}" $SLACK_URL
728x90
300x250

'IT > Infra Code' 카테고리의 다른 글

Local Log를 압축하여 S3로 Upload 작업  (0) 2022.02.15
Python Select문 Json 처리  (0) 2022.02.15
Check AP Healthcheck  (0) 2021.08.09
날짜별 Log Symbolic Link로 한가지 이름으로 설정  (0) 2021.07.01

+ Recent posts