Home > amqp-consume > amqp-consume -q

amqp-consume(1) -q
Consume messages from a queue on an AMQP server
-q, --queue=queue name
    The name of the queue to consume messages from.

    If the --queue option is omitted, the AMQP server will assign a unique name to the queue, and that
    server-assigned name will be dixsplayed on stderr; this case implies that an exclusive queue should
    be declared.


Consume messages from an existing queue “myqueue”, and output the message bodies on standard output via cat:
$ amqp-publish -q myqueue cat
Bind a new exclusive queue to an exchange “myexch”, and send each message body to the script myscript, automatically acknowledging them on the server:
$ amqp-consume -A -e myexch ./myscript

Tips or Questions?

Powered by ExplainShell