1AMQP-GET(1)                    RabbitMQ C Client                   AMQP-GET(1)
2
3
4

NAME

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

SYNOPSIS

9       amqp-get [OPTION...] {-q queue name}
10

DESCRIPTION

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

OPTIONS

17       -q, --queue=queue name
18           The name of the queue to consume messages from.
19

EXIT STATUS

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

EXAMPLES

26       Get a message from the queue “myqueue”, and display its body on
27       standard output:
28
29               $ amqp-get -q myqueue
30

SEE ALSO

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

AUTHOR

36       The RabbitMQ Team <<info@rabbitmq.com>>
37
38
39
40RabbitMQ C Client                 2019-12-02                       AMQP-GET(1)
Impressum