https://github.com/highb/pipe-to-slack-bash
It's like https://github.com/clarkie/pipe-to-slack but in Bash because... it was available
https://github.com/highb/pipe-to-slack-bash
Last synced: 2 months ago
JSON representation
It's like https://github.com/clarkie/pipe-to-slack but in Bash because... it was available
- Host: GitHub
- URL: https://github.com/highb/pipe-to-slack-bash
- Owner: highb
- License: unlicense
- Created: 2020-02-06T21:44:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-07T00:04:50.000Z (over 6 years ago)
- Last Synced: 2025-12-26T21:58:35.118Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pipe-to-slack-bash
It's like https://github.com/clarkie/pipe-to-slack but in Bash because... it was available
## Why
I wanted to play around with [Slack Incoming Webhooks](https://api.slack.com/messaging/webhooks). 🤷♂️
## Prerequisites
1. Either [HTTPie](https://httpie.org/) or [CuRL](https://curl.haxx.se/) is installed and available in your PATH.
## Config
You need to add some sort of app that supports "Incoming Webhooks" to your Slack, and then install this app as a user into your channel. That will give you a URL. Paste that URL into `~/.p2s.sh` and now you're ready to spam the channel with whatever logspam you want!
## Usage
```
ls /some/interesting/directory | p2s.sh
```
```
tail /var/log/app.logs | p2s.sh
```
```
head -c 50 /dev/urandom | base64 | ./p2s.sh
```
```
echo 'No code block for me, please!' | ./p2s.sh text
```