Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to emit dbus signal from command line

Tags:

linux

dbus

Is there a way to emit dbus signal from command line using dbus-send or something else ?

like image 529
deimus Avatar asked Sep 10 '10 13:09

deimus


1 Answers

You can use the utility dbus-send to send D-Bus request from the command line.

dbus-send --system --type=signal / com.example.signal_name

or if you'd like to send some data with the signal

dbus-send --system --type=signal / com.example.signal_name string:"hello"
like image 140
m__ Avatar answered Sep 20 '22 15:09

m__