Home > amqp-consume > amqp-consume -d

amqp-consume(1) -d
Consume messages from a queue on an AMQP server
-d, --declare
    Forces an exclusive queue to be declared, even when it otherwise would not be. That is, when a queue
    name is specified with the --queue option, but no binding to an exchange is requested with the
    --exchange option.

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