register bash script as dbus object

Matthew Johnson dbus at matthew.ath.cx
Fri Dec 12 04:22:54 PST 2008


On Fri Dec 12 15:06, Александр Лавриненко wrote:

> Why no way? Say, connect to dbus, announce itself and wait for methods from 
> clients could be done with:
> 
> ...
> connect-dbus-object-from-script bla-bla-bla......| while (read string ; do
> 
> but there's no "connect-dbus-object-from-script" or similar program to use 
> from scripts (nevermind the syntax - this is just conceptual example).

Precisely, this is why I said there's no way to do it, because there's no
such program at the moment, because noone has needed one yet.

Feel free to write one though, I'd be interested to know how well it
works. I'd be tempted to do it with callbacks though, so it would be
more like:

callback() {
   frob $1
   echo $2
   do-stuff-to $3
}

connect-dbus-object SYSTEM a.b.c /foo/bar d.e.f "iis" callback

Matt

-- 
www.matthew.ath.cx
D-Bus Java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20081212/42a1d288/attachment.pgp 


More information about the dbus mailing list