* tools/dbus-print-message.c (print_message): added printing of the reply serial...
[platform/upstream/dbus.git] / tools / dbus-send.1
1 .\" 
2 .\" dbus-send manual page.
3 .\" Copyright (C) 2003 Red Hat, Inc.
4 .\"
5 .TH dbus-send 1
6 .SH NAME
7 dbus-send \- Send a message to a message bus
8 .SH SYNOPSIS
9 .PP
10 .B dbus-send
11 [\-\-system | \-\-session] [\-\-dest=NAME] [\-\-print-reply]
12 [\-\-type=TYPE] <destination object path> <message name> [contents ...]
13
14 .SH DESCRIPTION
15
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.
19
20 .PP
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.
27
28 .PP 
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.
32
33 .PP
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.)
40
41 .PP
42 Here is an example invocation:
43 .nf
44
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
49
50 .fi
51
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.
55
56 .SH OPTIONS
57 The following options are supported:
58 .TP
59 .I "--dest=NAME"
60 Specify the name of the connection to receive the message.
61 .TP
62 .I "--print-reply"
63 Block for a reply to the message sent, and print any reply received.
64 .TP
65 .I "--system"
66 Send to the system message bus.
67 .TP
68 .I "--session"
69 Send to the session message bus.  (This is the default.)
70 .TP
71 .I "--type=TYPE"
72 Specify "method_call" or "signal" (defaults to "signal").
73
74 .SH AUTHOR
75 dbus-send was written by Philip Blundell.
76
77 .SH BUGS
78 Please send bug reports to the D-Bus mailing list or bug tracker,
79 see http://www.freedesktop.org/software/dbus/