All Projects → okvik → mq

okvik / mq

Licence: MIT License
message queue

Programming Languages

c
50402 projects - #5 most used programming language
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to mq

lua9
lua interpreter with some plan9 library modules
Stars: ✭ 17 (+21.43%)
Mutual labels:  plan9, 9front
barebones9
Barebones amd64 kernel built using 9front
Stars: ✭ 23 (+64.29%)
Mutual labels:  plan9, 9front
vdir
a visual directory browser for plan9
Stars: ✭ 66 (+371.43%)
Mutual labels:  plan9, 9front
reinstead
RE:INSTEAD - Lightweight INSTEAD metaparser-only player
Stars: ✭ 15 (+7.14%)
Mutual labels:  plan9, 9front
gopher
A gopher browser for plan9
Stars: ✭ 33 (+135.71%)
Mutual labels:  plan9, 9front
cpu
cpu command in Go, inspired by the Plan 9 cpu command
Stars: ✭ 135 (+864.29%)
Mutual labels:  plan9
91menu
A Plan9-inspired, mouse-oriented, graphical menu, which works with the standard input.
Stars: ✭ 15 (+7.14%)
Mutual labels:  plan9
torgo
A UNIX-like Non-GNU command line toolkit
Stars: ✭ 44 (+214.29%)
Mutual labels:  plan9
enhanced-plan9
google summer code
Stars: ✭ 13 (-7.14%)
Mutual labels:  plan9
ghfs
9p GitHub filesystem written in Go for use with Plan 9/p9p
Stars: ✭ 66 (+371.43%)
Mutual labels:  plan9

mq(4) — message queue

Mq serves a 9p file tree representing groups of buffered two-way data streams for multiple readers and writers accessible through the standard read(2) and write(2) file I/O interface.

Overview

Streams may be organized within an arbitrary file tree structure, which provides a means of namespacing and grouping.

<group>
	<group>*
	<stream>*
	order
	ctl

A directory denotes a group of streams. Any number of streams and sub-groups may be created within a group. Grouped streams share configuration and an order file.

The read-only meta-stream called order provides ordering information for data written to streams within a group. Special readers such as mq-cat(1) can tap into this stream to retrieve data coming from multiple streams in the same order it was written.

See the mq(4) manual page for a complete description of supported data modes, queue replay options, usage reference, and other details.

Examples

Mount the mq(4) file server and use it to persist an rc(1) shell session.

mq -s detach
mount -c /srv/detach /n/detach
mkdir /n/detach/rc
cd /n/detach/rc
echo replay all >ctl
touch fd0 fd1 fd2
rc -i <fd0 >>fd1 >>[2]fd2 &

Attach to the shell:

cat fd1 & cat fd2 & cat >>fd0

The program pin(1) provides a polished interface for persisting program sessions. It also makes use of the data ordering feature for faithful reproduction of session history.

The program mq-cat(1) is an example of an ordered multi-stream reader.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].