Re: about control the cdrom drive



sunnyboyGuo@xxxxxxxxx wrote:
Hi, all,
Now, there are some files saved in 4 CD and every CD has one serial
number which is saved in one file in the CD. The info file saves
concerned information, includes the relative path of each file, the CD
number of each file. I read and parse the info file, then read these
files from corresponding CD according their cd number and relative
path.
My question is how can I pop up the cdrom and ask the user to inject
the second CD after I dealing with the first CD. this is similar to the
installation CD of linux operating system. Could anyone help me?
Thanks.

Have a look at the "eject" program.
After having ejected the CD, you could open it using O_NDELAY to see when a new disk is inserted.
--
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett

.



Relevant Pages

  • Re: about control the cdrom drive
    ... concerned information, includes the relative path of each file, the CD ... I read and parse the info file, ... installation CD of linux operating system. ...
    (comp.os.linux.development.apps)
  • about control the cdrom drive
    ... concerned information, includes the relative path of each file, the CD ... I read and parse the info file, ... installation CD of linux operating system. ...
    (comp.os.linux.development.apps)