222N/A<!
DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
222N/A<!--ArborText, Inc., 1988-1999, v.4002-->
222N/A<!
ENTITY cmd "dbus-send">
222N/A<!
ENTITY suncopy "Copyright (c) 2007,2009 Sun Microsystems, Inc. All Rights Reserved.">
222N/A<?
Pub UDT _bookmark _target>
222N/A<
refentry id="dbus-send-1">
222N/A<!-- %Z%%M% %I% %E% SMI; --> 222N/A<
refmeta><
refentrytitle>&cmd;</
refentrytitle><
manvolnum>1</
manvolnum>
222N/A<
refmiscinfo class="date">25 Feb 2009</
refmiscinfo>
222N/A<
refmiscinfo class="sectdesc">&man1;</
refmiscinfo>
222N/A<
refmiscinfo class="software">&release;</
refmiscinfo>
222N/A<
refmiscinfo class="arch">generic</
refmiscinfo>
222N/A<
refmiscinfo class="copyright">&suncopy;</
refmiscinfo>
222N/A<
indexterm><
primary>&cmd;</
primary></
indexterm><
indexterm><
primary>
222N/ASend a message to a message bus
222N/A</
primary></
indexterm><
refnamediv id="dbus-send-1-name">
222N/A<
refname>&cmd;</
refname><
refpurpose>
222N/ASend a message to a message bus
222N/A</
refpurpose></
refnamediv>
222N/A<
refsynopsisdiv id="dbus-send-1-synp"><
title>&synp-tt;</
title>
222N/A<
cmdsynopsis><
command>&cmd;</
command>
222N/A<
arg choice="opt"><
option>-system</
option> | <
option>-session</
option></
arg>
222N/A<
arg choice="opt"><
option>-dest=<
replaceable>name</
replaceable></
option></
arg>
222N/A<
arg choice="opt"><
option>-help</
option></
arg>
540N/A<
arg choice="opt"><
option>-print-reply</
option></
arg>
222N/A<
arg choice="opt"><
option>-type=<
replaceable>type</
replaceable></
option></
arg>
222N/A<
arg choice="plain"><
option role="nodash">destination_object_path</
option></
arg>
493N/A<
arg choice="plain"><
option role="nodash">message_name</
option></
arg>
493N/A<
arg rep="repeat"><
option role="nodash">contents</
option></
arg>
222N/A</
cmdsynopsis></
refsynopsisdiv>
540N/A<
refsect1 id="dbus-send-1-desc"><
title>&desc-tt;</
title>
222N/AThe <
command>&cmd;</
command> command is used to send a message to a D\-Bus
222N/AThere are two standard message buses:
222N/Asystemwide message bus - Launched when the system is started and is always
493N/Aavailable. Additional systemwide services can be launched via the D\-Bus
493N/A"service activation" feature. However, note that this
493N/A"service activation" feature is disabled on Solaris.
365N/Aper-user-login-session message bus - Launched each time a user logs in.
355N/AThe <
option>-system</
option> and <
option>-session</
option> options direct
355N/A<
command>&cmd;</
command> to send messages to the system or session buses
222N/Arespectively. If neither is specified, &cmd; sends to the session bus.
222N/ANearly all uses of <
command>&cmd;</
command> must provide the
222N/A<
option>-dest</
option> argument which is the name of a connection on the bus to
222N/Asend the message to. If <
option>-dest</
option> is omitted, no destination is
222N/AThe object path and the name of the message to send must always be specified.
222N/AFollowing arguments, if any, are the message contents (message arguments).
222N/AThese are given as type-specified values and may include containers (arrays,
222N/Adicts, and variants) as described below.
222N/A <contents> ::= <item> | <container> [ <item> | <container>...]
222N/A <item> ::= <type>:<value>
222N/A <container> ::= <array> | <dict> | <variant>
222N/A <array> ::= array:<type>:<value>[,<value>...]
222N/A <dict> ::= dict:<type>:<type>:<key>,<value>[,<key>,<value>...]
222N/A <variant> ::= variant:<type>:<value>
222N/A <type> ::= string | int16 | uint 16 | int32 | uint32 |
222N/A int64 | uint64 | double | byte | boolean | objpath
222N/AD-Bus supports more types than these, but <
command>&cmd;</
command> currently
222N/Adoes not. Also, <
command>&cmd;</
command> does not permit empty containers or
493N/Anested containers (
e.g. arrays of variants).
365N/A<
refsect1 id="dbus-send-1-opts"><
title>&opts-tt;</
title>
365N/AThe following options are supported:
365N/A<
variablelist termlength="wholeline">
365N/A<
term><
option>-dest=<
replaceable>name</
replaceable></
option></
term>
365N/ASpecify the <
replaceable>name</
replaceable> of the connection to receive the
</
listitem></
varlistentry>
<
term><
option>-help</
option></
term>
Show help information on standard output and exit.
</
listitem></
varlistentry>
<
term><
option>-print-reply</
option></
term>
Block for a reply to the message sent, and print any reply received.
</
listitem></
varlistentry>
<
term><
option>-session</
option></
term>
Send to the session message bus (this is the default).
</
listitem></
varlistentry>
<
term><
option>-system</
option></
term>
Send to the system message bus. The system bus is disabled and unsupported
</
listitem></
varlistentry>
<
term><
option>-type=<
replaceable>type</
replaceable></
option></
term>
Specify "method_call" or "signal" (defaults to
</
listitem></
varlistentry>
</
variablelist></
refsect1>
<
refsect1 id="dbus-send-1-oper"><
title>&oper-tt;</
title>
The following operands are supported:
<
variablelist termlength="medium">
<
term><
option role="nodash"><
replaceable>destination_object_path</
replaceable></
option></
term>
The object path of the message to send must always be specified.
</
listitem></
varlistentry>
<
term><
option role="nodash"><
replaceable>message_name</
replaceable></
option></
term>
The name of the message to send must always be specified.
</
listitem></
varlistentry>
<
term><
option role="nodash"><
replaceable>contents</
replaceable></
option></
term>
Following arguments, if any, are the message contents (message arguments).
These are given as a type name, a colon, and then the value of the argument.
</
listitem></
varlistentry>
</
variablelist></
refsect1>
<
refsect1 id="dbus-send-1-exam"><
title>&exam-tt;</
title>
<
title>How to use <
command>&cmd;</
command> with a sh-compatible shell to start
the per-session bus daemon</
title>
int32:47 string:'hello world' double:65.32 \\
array:string:"1st item","next item","last item" \\
dict:string:int32:"one",1,"two",2,"three",3 \\
Note that the interface is separated from a method or signal name by a dot,
though in the actual protocol the interface and the interface member are
<
refsect1 id="dbus-send-1-exit"><
title>&exit-tt;</
title>
The following exit values are returned:
<
variablelist termlength="xtranarrow">
<
term><
returnvalue>0</
returnvalue></
term>
Application exited successfully
</
listitem></
varlistentry>
<
term><
returnvalue>>0</
returnvalue></
term>
Application exited with failure
</
listitem></
varlistentry>
</
variablelist></
refsect1>
<
refsect1 id="dbus-send-1-file"><
title>&file-tt;</
title>
The following files are used by this application:
<
variablelist termlength="wide">
<
term><
filename>/
usr/
bin/&cmd;</
filename></
term>
Executable for <
command>&cmd;</
command>
</
listitem></
varlistentry>
<
refsect1 id="dbus-send-1-attr"><
title>&attr-tt;</
title>
<
olink targetdocent="REFMAN5" localinfo="attributes-5">
<
citerefentry><
refentrytitle>attributes</
refentrytitle>
<
manvolnum>5</
manvolnum></
citerefentry></
olink>
for descriptions of the following attributes:
<
informaltable frame="all">
<
tgroup cols="2" colsep="1" rowsep="1">
<
colspec colname="COLSPEC0" colwidth="1*">
<
colspec colname="COLSPEC1" colwidth="1*">
<
entry align="center" valign="middle">ATTRIBUTE TYPE</
entry>
valign="middle">ATTRIBUTE VALUE</
entry></
row>
<
entry><
para>Availability</
para></
entry>
<
entry><
para>SUNWdbus</
para></
entry>
<
entry colname="COLSPEC0"><
para>Interface stability</
para></
entry>
<
entry colname="COLSPEC1"><
para>Volatile</
para></
entry>
<
refsect1 id="dbus-send-1-also"><
title>&also-tt;</
title>
<!--Reference to another man page--> <!--Reference to a Help manual--> <!--Reference to a book.--> More information can be found at:
<
citerefentry><
refentrytitle>dbus-binding-tool</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>dbus-cleanup-sockets</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>dbus-daemon</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>dbus-launch</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>dbus-monitor</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>dbus-uuidgen</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>libdbus-glib-1</
refentrytitle><
manvolnum>3</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>
<
refsect1 id="dbus-send-1-note"><
title>¬e-tt;</
title>
For authorship information refer to
Updated by Brian Cameron, Sun Microsystems Inc., 2007.
<
command>&cmd;</
command> was written by Philip Blundell.
Please send bug reports to the D\-Bus mailing list or bug