EnglishFrenchSpanish

OnWorks favicon

amqp-publish - Online in the Cloud

Run amqp-publish in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command amqp-publish that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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:" 10

$
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:" 10

$
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.

amqp-publish(1)

Use amqp-publish online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    VirtualGL
    VirtualGL
    VirtualGL redirects 3D commands from a
    Unix/Linux OpenGL application onto a
    server-side GPU and converts the
    rendered 3D images into a video stream
    with which ...
    Download VirtualGL
  • 2
    libusb
    libusb
    Library to enable user space
    application programs to communicate with
    USB devices. Audience: Developers, End
    Users/Desktop. Programming Language: C.
    Categories...
    Download libusb
  • 3
    SWIG
    SWIG
    SWIG is a software development tool
    that connects programs written in C and
    C++ with a variety of high-level
    programming languages. SWIG is used with
    different...
    Download SWIG
  • 4
    WooCommerce Nextjs React Theme
    WooCommerce Nextjs React Theme
    React WooCommerce theme, built with
    Next JS, Webpack, Babel, Node, and
    Express, using GraphQL and Apollo
    Client. WooCommerce Store in React(
    contains: Products...
    Download WooCommerce Nextjs React Theme
  • 5
    archlabs_repo
    archlabs_repo
    Package repo for ArchLabs This is an
    application that can also be fetched
    from
    https://sourceforge.net/projects/archlabs-repo/.
    It has been hosted in OnWorks in...
    Download archlabs_repo
  • 6
    Zephyr Project
    Zephyr Project
    The Zephyr Project is a new generation
    real-time operating system (RTOS) that
    supports multiple hardware
    architectures. It is based on a
    small-footprint kernel...
    Download Zephyr Project
  • More »

Linux commands

Ad