Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/mqPublic

message queue

License

NotificationsYou must be signed in to change notification settings

okvik/mq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Overview

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

<group><group>*<stream>*orderctl

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

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

See themq(4) manual page for a completedescription of supported data modes, queue replay options, usage reference,and other details.

Examples

Mount themq(4) file server and use it to persist anrc(1) shell session.

mq -s detachmount -c /srv/detach /n/detachmkdir /n/detach/rccd /n/detach/rcecho replay all >ctltouch fd0 fd1 fd2rc -i <fd0 >>fd1 >>[2]fd2 &

Attach to the shell:

cat fd1 & cat fd2 & cat >>fd0

The programpin(1) provides a polished interface for persistingprogram sessions. It also makes use of the data ordering feature forfaithful reproduction of session history.

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


[8]ページ先頭

©2009-2025 Movatter.jp