logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

amqp-get - Get a message from a queue on an AMQP server

Author

TheRabbitMQTeam<<info@rabbitmq.com>>

RabbitMQ C Client                                  2024-11-22                                        AMQP-GET(1)

Description

amqp-get attempts to consume a single message from a queue on an AMQP server, and exits. Unless the queue
       was empty, the body of the resulting message is sent to standard output.

Examples

       Get a message from the queue “myqueue”, and display its body on standard output:

               $ amqp-get-qmyqueue

Exit Status

       If the queue is not empty, and a message is successfully retrieved, the exit status is 0. If an error
       occurs, the exit status is 1. If the queue is found to be empty, the exit status is 2.

Name

       amqp-get - Get a message from a queue on an AMQP server

Options

-q, --queue=queuename
           The name of the queue to consume messages from.

See Also

librabbitmq-tools(7) describes connection-related options common to all the RabbitMQ C Client tools.

Synopsis

amqp-get [OPTION...] {-q queuename}

See Also