1dbus-send(1) General Commands Manual dbus-send(1)
2
3
4
6 dbus-send - Send a message to a message bus
7
9 dbus-send [--system | --session] [--dest=NAME] [--print-reply]
10 [--type=TYPE] <destination object path> <message name> [contents ...]
11
12
14 The dbus-send command is used to send a message to a D-Bus message bus.
15 See http://www.freedesktop.org/software/dbus/ for more information
16 about the big picture.
17
18
19 There are two well-known message buses: the systemwide message bus
20 (installed on many systems as the "messagebus" service) and the per-
21 user-login-session message bus (started each time a user logs in). The
22 --system and --session options direct dbus-send to send messages to the
23 system or session buses respectively. If neither is specified, dbus-
24 send sends to the session bus.
25
26
27 Nearly all uses of dbus-send must provide the --dest argument which is
28 the name of a connection on the bus to send the message to. If --dest
29 is omitted, no destination is set.
30
31
32 The object path and the name of the message to send must always be
33 specified. Following arguments, if any, are the message contents (mes‐
34 sage arguments). These are given as a type name, a colon, and then the
35 value of the argument. The possible type names are: string, int32,
36 uint32, double, byte, boolean. (D-Bus supports more types than these,
37 but dbus-send currently does not.)
38
39
40 Here is an example invocation:
41
42 dbus-send --dest='org.freedesktop.ExampleName \
43 /org/freedesktop/sample/object/name \
44 org.freedesktop.ExampleInterface.ExampleMethod \
45 int32:47 string:'hello world' double:65.32
46
47
48 Note that the interface is separated from a method or signal name by a
49 dot, though in the actual protocol the interface and the interface mem‐
50 ber are separate fields.
51
52
54 The following options are supported:
55
56 --dest=NAME
57 Specify the name of the connection to receive the message.
58
59 --print-reply
60 Block for a reply to the message sent, and print any reply
61 received.
62
63 --system
64 Send to the system message bus.
65
66 --session
67 Send to the session message bus. (This is the default.)
68
69 --type=TYPE
70 Specify "method_call" or "signal" (defaults to "signal").
71
72
74 dbus-send was written by Philip Blundell.
75
76
78 Please send bug reports to the D-Bus mailing list or bug tracker, see
79 http://www.freedesktop.org/software/dbus/
80
81
82
83 dbus-send(1)