CD-ROM access on NON-SGI systems?
Bob van der Poel
bvdpoel at uniserve.com
Wed Nov 8 19:16:47 EST 2000
Olivier Dagenais wrote:
>
> From a usability standpoint, is it THAT difficult for the user to eject a CD
> that you must have the computer do it for them?
>
> --
> ----------------------------------------------------------------------
> Olivier A. Dagenais - Software Architect and Developer
> "Someone called 'Type your name here' is impersonating me on the
> internet and is posting exactly the same things I am posting!"
>
> > I'm looking for a way to access my CD-ROM drive through Python (open,
> close,
> > query whether there is/isn't a disk in the drive, etc..). I noticed the
> > `cd' module which would accomplish what I want to do, but it's only
> available
> > under IRIX. Is there any way to do this under FreeBSD/Linux with Python?
> >
> > Basically, I need to write an interactive script that prompts the user to
> load
> > a CD, then ejects the CD after some processing and waits until a 2nd CD is
> > loaded before it continues processing. Any ideas would be helpful.
> >
> > Regards,
> > Graham
I did the same by calling the "eject" program as a shell command. Works
fine for me. BTW, it would be nice to have a generic CD module like the
IRIX stuff which worked on all flavors. Any volunteers?
--
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: bvdpoel at uniserve.com
WWW: http://users.uniserve.com/~bvdpoel
More information about the Python-list
mailing list