Aubin Paul wrote:
>> > Also, there is an IOCTL for eject, so why don't we use that instead
>> > of calling 'eject'
>> 
>> I thought about that, too some days ago. 
>
> It's pretty straightforward too:
>
> import os
> from CDROM import *
> from fcntl import ioctl
> fd = os.open('/dev/cdrom', os.O_RDONLY | os.O_NONBLOCK)
> s = ioctl(fd, CDROMEJECT)
> s = ioctl(fd, CDROMCLOSETRAY)

Done

Dischi

-- 
Enter any 11-digit prime number to continue...


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to