amqp-get(1)

amqp-get1

Get a message from a queue on an amqp server

Usage

amqp-get [OPTION ...] -q queue name

Overview

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.

Options

-q, --queue=queue name

The name of the queue to consume messages from.

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.

Examples

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

$ amqp-get -q myqueue

Releases

8 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10–12
  5. 13
  6. Arch

-q until Debian 12 (Bookworm).

Author

The RabbitMQ Team <<[email protected]>>

From librabbitmq-c 0.16.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.