@hackage pub2.0.2
Pipe stdin to a redis pub/sub channel
Categories
License
BSD-3-Clause
Maintainer
Parnell Springmeyer <parnell@digitalmentat.com>
Links
Versions
Installation
Dependencies (0)
- ConfigFile >=1.1.1 && <1.2
- base >=4 && <5
- bytestring >=0.10.0.2 && <0.10.1
- cmdargs >=0.10.7 && <0.11
- containers >=0.5.0.0 && <0.6
- groom >=0.1.2 && <0.2 Show all…
Dependents (1)
@hackage/acme-everything
pub is an executable for piping data from stdin to a specified
Redis pub/sub channel.
A typical use for this tool is to tail a log file, match a specific line with grep, and pipe it into Redis where multiple consumers can do something different with each incoming log line:
tail -F /var/log/somelogfile.log | grep "tracker.gps.parsed" | pub loglines
It also comes with a utility named sub for piping from a Redis
pub/sub channel to stdout:
sub loglines | grep "somemsg"