2 .\" dbus-send manual page.
3 .\" Copyright (C) 2003 Red Hat, Inc.
7 dbus-send \- Send a message to a message bus
11 [\-\-system | \-\-session] [\-\-dest=NAME] [\-\-print-reply]
12 [\-\-type=TYPE] <destination object path> <message name> [contents ...]
16 The \fIdbus-send\fP command is used to send a message to a D-Bus message
17 bus. See http://www.freedesktop.org/software/dbus/ for more
18 information about the big picture.
21 There are two well-known message buses: the systemwide message bus
22 (installed on many systems as the "messagebus" service) and the
23 per-user-login-session message bus (started each time a user logs in).
24 The \-\-system and \-\-session options direct \fIdbus-send\fP to send
25 messages to the system or session buses respectively. If neither is
26 specified, \fIdbus-send\fP sends to the session bus.
29 Nearly all uses of \fIdbus-send\fP must provide the \-\-dest argument
30 which is the name of a connection on the bus to send the message to. If
31 \-\-dest is omitted, no destination is set.
34 The object path and the name of the message to send must always be
35 specified. Following arguments, if any, are the message contents
36 (message arguments). These are given as a type name, a colon, and
37 then the value of the argument. The possible type names are: string,
38 int32, uint32, double, byte, boolean. (D-Bus supports more types than
39 these, but \fIdbus-send\fP currently does not.)
42 Here is an example invocation:
45 dbus-send \-\-dest='org.freedesktop.ExampleName \\
46 /org/freedesktop/sample/object/name \\
47 org.freedesktop.ExampleInterface.ExampleMethod \\
48 int32:47 string:'hello world' double:65.32
52 Note that the interface is separated from a method or signal
53 name by a dot, though in the actual protocol the interface
54 and the interface member are separate fields.
57 The following options are supported:
60 Specify the name of the connection to receive the message.
63 Block for a reply to the message sent, and print any reply received.
66 Send to the system message bus.
69 Send to the session message bus. (This is the default.)
72 Specify "method_call" or "signal" (defaults to "signal").
75 dbus-send was written by Philip Blundell.
78 Please send bug reports to the D-Bus mailing list or bug tracker,
79 see http://www.freedesktop.org/software/dbus/