https://github.com/influxdata/catslack
Shell -> Slack the easy way
https://github.com/influxdata/catslack
Last synced: 3 months ago
JSON representation
Shell -> Slack the easy way
- Host: GitHub
- URL: https://github.com/influxdata/catslack
- Owner: influxdata
- Created: 2016-03-29T23:55:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-21T18:42:56.000Z (about 10 years ago)
- Last Synced: 2025-04-11T01:40:58.231Z (about 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 28
- Watchers: 9
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CatSlack
Inspired by [SlackCat](https://github.com/rlister/slackcat) but rewritten in Go for easy portability.
This is a command line utility to post `stdin` to a configured [Incoming Webhook](https://api.slack.com/incoming-webhooks) on your slack channel. To use it have a script that outputs something useful to `stdin`. Maybe something like `myCoolScript.sh`...
```sh
$ cat myCoolScript.sh
#!/bin/bash
echo "I'm going to be posted in Slack!"
# Set your Slack Incoming Webhook URL:
$ export URL="https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX"
# Experience pleasure by using the catslack!
$ ./myCoolTestScript.sh | catslack
```