I'm trying to run dbus-send
in a remote system but somehow I'm not able to run it. But the same dbus-send
, if I run it in the local system, is working fine.
COMMAND:
ssh remote@xx.xx.xx.xxx "dbus-send --print-reply --dest=service.name /object/path object.path.Service.method string:"XYZ""
How can I run dbus-send
command from the remote system?
SYSTEM INFO
Linux 3.13.0-29-generic Ubuntu i686 GNU/Linux
dbus-send
probably cannot find which session bus to connect to - it may be enough to set theDISPLAY
variable to that of the remote session e.g."DISPLAY=:0 dbus-send ..."
; otherwise you will need to extract and set the actualDBUS_SESSION_BUS_ADDRESS
– steeldriver Sep 2 '14 at 10:54DBUS_SESSION_BUS_ADDRESS
and the value isunix:path=/run/user/1000/bus
but still i'm not able to executedbus-send
– Thushi Sep 2 '14 at 12:33source
command from @chaos's answer? – steeldriver Sep 2 '14 at 12:41cat: /var/lib/dbus/machine-id: No such file or directory
bash: ~/.dbus/session-bus/-0:Permission denied
– Thushi Sep 2 '14 at 13:37