umq
TCP message pushing and receiving in Bash
This package makes easy to handle TCP requests on the command-line.
You can both send and receive messages with the portability only Bash can offer.
Usage
umq
is quite a toolbox - there are several ways you can use it.
Let’s take a server, for example.
The following will create a server and listen on localhost
port 3000
for all incoming TCP messages.
You can connect and read from the server by using umq
itself:
Pushing data is just as easy:
umq’s API
Real-life Examples
CPU Histogram
Using umq
with the histo viewer allows for data to be streamed via TCP to a histogram chart.
See cpu-stream for a preview.
wall
server
Streaming messages to all users via the wall
program. See wall-server.
Links
- Source Code (GitHub)
- Author: Joseph Werle
blog comments powered by Disqus