.TH "amqp-get" "1" .SH "NAME" amqp-get \(em Get a message from a queue on an AMQP server .SH "SYNOPSIS" .PP \fBamqp-get\fR \fIOPTION\fR \-q \fIqueue name\fR .SH "Description" .PP \fBamqp-get\fR 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. .SH "Options" .IP "\fB-q\fP" 10 .IP "\fB\-\-queue\fP=\fIqueue name\fR" 10 The name of the queue to consume messages from. .SH "Exit Status" .PP 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. .SH "Examples" .IP "Get a message from the queue ``\fI\fBmyqueue\fP\fP'', and display its body on standard output:" 10 .PP .nf $ .ft B amqp-get \-q myqueue .ft .fi .SH "See also" .PP \fBlibrabbitmq-tools\fP\fB(7)\fP describes connection-related options common to all the RabbitMQ C Client tools. .\" created by instant / docbook-to-man