https://github.com/jwerle/q
Simple message queuing
https://github.com/jwerle/q
Last synced: 12 months ago
JSON representation
Simple message queuing
- Host: GitHub
- URL: https://github.com/jwerle/q
- Owner: jwerle
- License: mit
- Created: 2014-09-08T21:43:59.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-09T01:28:13.000Z (almost 12 years ago)
- Last Synced: 2025-04-22T21:49:31.446Z (about 1 year ago)
- Language: Shell
- Size: 128 KB
- Stars: 13
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
q(1)
====
Simple message queuing
## install
```sh
$ bpkg install jwerle/q
```
## usage
```
usage: q [-hV]
or: q push [data]
or: q shift
or: q lock
or: q unlock
or: q clear
or: q stream
```
`q(1)` is a dead simple message queue written in bash. You can queue
messages or lock into a fifo. Messgaes are pushed and shifted. Messages
may be persisted in a log file that may be cleared when unlocked.
Push a message:
```sh
$ echo beep | q push
$ echo boop | q push
```
Shift a message off q
```sh
$ q shift
beep
$ q shift
boop
```
You can lock the q so a message must be acknowledged before another
can be pushed on to it.
```sh
$ q lock
$ echo boop | q push
```
```sh
# in another terminal
$ q shift
boop
$ q unlock
```
The q can be streamed as well
```sh
$ unlock
$ q push a
$ q push b
$ q push c
$ q stream
a
b
c
```
## license
MIT