Carl-Daniel Hailfinger wrote:
> Ludwig Nussel wrote:
> > On Thursday 14 September 2006 14:02, Bernhard Walle wrote:
> >> * Ludwig Nussel <[EMAIL PROTECTED]> [2006-09-14 13:12]:
> >>> By calling the Eject() method of the object that represents the device
> >>> in hal.
> >> Is there a command line utitlity to achieve this? It would be also
> >> interesting if there's a command line utility to perform
> >> mount/unmount.
> > 
> > You can use dbus-send to call any method. For mount/umount there is
> > halmount (package ivman)
> 
> Working example please. Especially for the eject call.
> 
> According to the dbus-send man page, the following should work.
> But it simply does nothing, even if the CD is no longer mounted.
> dbus-send --system --dest=org.freedesktop.Hal.Device.Volume 
> /org/freedesktop/Hal/devices/volume_label_K3b_data_CD 
> org.freedesktop.Hal.Device.Volume.Eject

dbus-send --system --print-reply --dest=org.freedesktop.Hal \
        /org/freedesktop/Hal/devices/volume_label_foo \
        org.freedesktop.Hal.Device.Volume.Eject \
        array:string:

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX Products GmbH, Development
 V_/_  http://www.suse.de/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to