Unix and Linux Discussions Tagged with exchange |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
5,152 |
Shell Programming and Scripting |
|
|
|
1 |
14,419 |
Linux |
|
|
|
11 |
4,758 |
What is on Your Mind? |
|
|
|
0 |
4,912 |
IP Networking |
|
|
|
0 |
1,505 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,580 |
Complex Event Processing RSS News |
|
|
|
0 |
1,834 |
UNIX and Linux RSS News |
|
|
|
0 |
2,526 |
UNIX and Linux RSS News |
|
|
|
0 |
5,368 |
AIX |
|
|
|
0 |
2,927 |
UNIX and Linux RSS News |
|
|
|
0 |
3,051 |
AIX |
|
|
|
2 |
2,131 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,530 |
Oracle Updates (RSS) |
|
|
|
0 |
1,460 |
Complex Event Processing RSS News |
|
|
|
1 |
3,947 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
3,246 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,886 |
Windows & DOS: Issues & Discussions |
|
|
|
3 |
4,314 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,059 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
5,939 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
22 |
45,559 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,270 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
11,982 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
28,471 |
How do I send email? |
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
The name of the exchange to publish to. If omitted, the default exchange (also known as the nameless exchange) is used.
-r, --routing-key=routing key
The routing key to publish with. If omitted, an empty routing key is assumed. A routing key must be specified when publishing to the
default exchange; in that case, accoding to the AMQP specification, the routing key corresponds to a queue name.
-p, --persistent
Use the persistent delivery mode. Without this option, non-persistent delivery is used.
-C, --content-type=MIME type
Specifies the content-type property for the message. If omitted, the content-type property is not set on the message.
-E, --content-encoding=content coding
Specifies the content-encoding property for the message. If omitted, the content-encoding property is not set on the message.
-b, --body=message body
Specifies the message body. If omitted, the message body is read from standard input.
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>
RabbitMQ C Client 2011-01-01 AMQP-PUBLISH(1)