Consume messages from an existing queue “myqueue”, and output the message bodies on standard output via
$ 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?