| AMQP-PUBLISH(1) | RabbitMQ C Client | AMQP-PUBLISH(1) |
نام (NAME)
amqp-publish - Publish a message on an AMQP server
خلاصه دستور (SYNOPSIS)
amqp-publish [OPTION...]
توضیحات (DESCRIPTION)
Publishes a message to an exchange on an AMQP server. Options allow the various properties of the message and parameters of the AMQP basic.publish method to be specified.
By default, the message body is read from standard input. Alternatively, the -b option allows the message body to be provided as part of the command.
گزینهها (OPTIONS)
-e, --exchange=exchange name
-r, --routing-key=routing key
-p, --persistent
-C, --content-type=MIME type
-E, --content-encoding=content coding
-b, --body=message body
-H, --header=header
مثالها (EXAMPLES)
Send a short message, consisting of the word “Hello” to the queue “myqueue” via the default exchange:
$ amqp-publish -r myqueue -b Hello
Send some XML data from a file to the exchange “events”, with persistent delivery mode, setting the content-type property on the message to make the data format explicit:
$ amqp-publish -e events -p -C text/xml <event.xml
همچنین ببینید (SEE ALSO)
librabbitmq-tools(7) describes connection-related options common to all the RabbitMQ C Client tools.
نویسنده (AUTHOR)
The RabbitMQ Team <<info@rabbitmq.com>>
| 2026-06-15 | RabbitMQ C Client |