AMQP-GET(1)
π AMQP-GET(1) π
okay bestie, welcome to amqp-get β a lil tool from the RabbitMQ C Client and she is so good at exactly one thing: snatching a single message off an AMQP server and dipping. β¨
πΈ NAME πΈ
amqp-get β get a message from a queue on an AMQP server π«Ά
π SYNOPSIS π
amqp-get [OPTION...] {-q queue name}
π¦ DESCRIPTION π¦
so like. amqp-get rolls up to a queue on an AMQP server, tries to consume one single message, and then peaces out immediately. one (1) message. that's the whole vibe. π
unless the queue was empty (in which case, no message for us π), the body of the message it grabbed gets sent straight to standard output. slay.
β¨ OPTIONS β¨
-q,--queue=queue nameβ the name of the queue we're consuming messages from. literally just tell her where to look, bestie. π
π EXIT STATUS π
the exit status is the whole story arc here, so pay attention:
- if the queue is not empty and a message was successfully retrieved β exit status is
0π (ate, no crumbs) - if an error occurs β exit status is
1π - if the queue is found to be empty β exit status is
2π (not a failure, just a lil "nothing here!" vibe)
bestie fr fr, check that exit status.2is not the same as0. iykyk. π¨
π EXAMPLES π
get a message from the queue myqueue, and display its body on standard output:
$ amqp-get -q myqueue
look at her go β¨ main character energy.
π SEE ALSO π
librabbitmq-tools(7) β describes connection-related options common to all the RabbitMQ C Client tools. so if you're wondering about the connection stuff, that's where it lives. π§
π AUTHOR π
The RabbitMQ Team <info@rabbitmq.com> π«Ά
and that's the page!! this beauty is part of the RabbitMQ C Client, version dated 2026-10-13. go get that message, bestie, you got this πβ¨π
π¦ where this page comes from
- fedora 43: librabbitmq-tools 0.18.1-1.fc43 Β· MIT
- fedora 44: librabbitmq-tools 0.18.1-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms