goeb / mq

command line tool to use Posix Message Queues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mq - a command line tool to use Posix Message Queues

Usage: mq [OPTION...] create QNAME
  or:  mq [OPTION...] info QNAME
  or:  mq [OPTION...] unlink QNAME
  or:  mq [OPTION...] send QNAME MESSAGE
  or:  mq [OPTION...] recv QNAME
A command line tool to use Posix Message Queues from the shell

 Options:
  -t, --timestamp            Print a timestamp before lines of data
  -v, --verbose              Produce verbose output

 Options for create:
  -m, --maxmsg=NUMBER        Maximum number of messages in queue
  -s, --msgsize=SIZE         Message size in bytes

 Options for recv:
  -f, --follow               Print messages as they are received

 Options for send:
  -p, --priority=PRIO        Use priority PRIO, PRIO >= 0

 Options for send, recv:
  -n, --non-blocking         Do not block (send, recv)

  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Commands:
  create    Create a POSIX message queue
  info      Print information about an existing message queue
  unlink    Delete a message queue
  send      Send a message to a message queue
  recv      Receive and print a message from a message queue

Examples:
  mq create /myqueue
  mq send /myqueue "hello" -n
  mq info /myqueue
  mq recv /myqueue
  mq unlink /myqueue

About

command line tool to use Posix Message Queues

License:MIT License


Languages

Language:C 92.3%Language:M4 6.4%Language:Makefile 0.9%Language:Shell 0.4%