2003-08-30 Havoc Pennington <hp@pobox.com>
[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=SERVICE] [\-\-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 service on the bus to send the message to. If
31 \-\-dest is omitted, a default service name of
32 "org.freedesktop.Broadcast" is used.  
33
34 .PP
35 The object path and the name of the message to send must always be
36 specified. Following arguments, if any, are the message contents
37 (message arguments).  These are given as a type name, a colon, and
38 then the value of the argument. The possible type names are: string,
39 int32, uint32, double, byte, boolean.  (D-BUS supports more types than
40 these, but \fIdbus-send\fP currently does not.)
41
42 .PP
43 Here is an example invocation:
44 .nf
45
46   dbus-send \-\-dest='org.freedesktop.ExampleService'        \\
47             /org/freedesktop/sample/object/name              \\
48             org.freedesktop.ExampleInterface.ExampleMethod   \\
49             int32:47 string:'hello world' double:65.32
50
51 .fi
52
53 Note that the interface is separated from a method or signal 
54 name by a dot, though in the actual protocol the interface
55 and the interface member are separate fields.
56
57 .SH OPTIONS
58 The following options are supported:
59 .TP
60 .I "--dest=SERVICE"
61 Specify the service to receive the message.
62 .TP
63 .I "--print-reply"
64 Block for a reply to the message sent, and print any reply received.
65 .TP
66 .I "--system"
67 Send to the system message bus.
68 .TP
69 .I "--session"
70 Send to the session message bus.  (This is the default.)
71 .TP
72 .I "--type=TYPE"
73 Specify "method_call" or "signal" (defaults to "signal").
74
75 .SH AUTHOR
76 dbus-send was written by Philip Blundell.
77
78 .SH BUGS
79 Please send bug reports to the D-BUS mailing list or bug tracker,
80 see http://www.freedesktop.org/software/dbus/