Home > amqp-consume > amqp-consume -e

amqp-consume(1) -e
Consume messages from a queue on an AMQP server
-e, --exchange=exchange name
    Specifies that an exclusive queue should be declared, and bound to the given exchange. The specified
    exchange should already exist unless the --exchange-type option is used to request the creation of an
    exchange.

Examples

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