Skip to content

Instantly share code, notes, and snippets.

@ko31
Created January 8, 2020 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ko31/72bd8941a64f6096baaa47113666a4a2 to your computer and use it in GitHub Desktop.
Save ko31/72bd8941a64f6096baaa47113666a4a2 to your computer and use it in GitHub Desktop.
How to easily post to slack channel with shell script
#!/bin/sh
curl -X POST https://slack.com/api/chat.postMessage \
-d "token=[REPLACE-YOUR-TOKEN]" \
-d "channel=#general" \
-d "text=Hello World!<!channel>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment