@hackage pub1.0.0

Pipe stdin to a redis pub/sub channel

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