The pub package

[Tags:bsd3, program]

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"

Properties

Versions 1.0.0, 1.0.1, 2.0.0, 2.0.1, 2.0.2
Dependencies base (==4.*), bytestring (>=0.10.0.2 && <0.10.1), cmdargs (>=0.10.7 && <0.11), ConfigFile (>=1.1.1 && <1.2), containers (>=0.5.0.0 && <0.6), groom (>=0.1.2 && <0.2), hedis (==0.6.*), hslogger (>=1.2.3 && <1.3), mtl (>=2.1 && <2.3), network (>=2.4.2.2 && <2.5), pipes (>=4.1.1 && <4.2), pipes-bytestring (==2.*), safe (==0.3.*), system-filepath (>=0.4.12 && <0.5), text (>=1.1.0.1 && <1.2), time (==1.4.*), transformers (==0.4.*) [details]
License BSD3
Author Parnell Springmeyer <parnell@digitalmentat.com>
Maintainer Parnell Springmeyer <parnell@digitalmentat.com>
Category Utility
Source repository head: git clone https://github.com/ixmatus/pub
Uploaded Mon Oct 13 14:36:02 UTC 2014 by ParnellSpringmeyer
Distributions NixOS:2.0.2
Downloads 866 total (2 in the last 30 days)
Votes
0 []
Status Docs not available [build log]
All reported builds failed as of 2016-12-13 [all 7 reports]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees