Re: Is there any module to get the cdrom infomation?



Hello

On 29 juil, 04:35, "lofenee" <lofe...@xxxxxxxxx> wrote:
I want to check whether a cdrom node under /dev actually exists.

maybe ioctl could help ?
(quick and dirty, sorry ...)

.....
open(CDROM, "< /dev/cdrom");
$media = ioctl(CDROM, 0x5327, $status='');
close(CDROM);

if($media eq 101) {
#media is present whith info
....
}

Regards
--
michel marcon aka cmic

.



Relevant Pages

  • Baffled by error
    ... I have a class called "Artist" that tries to open an SQLite3 database and load a row into itself. ... def load ...
    (comp.lang.ruby)
  • Re: Heathers broadcast outburst
    ... But did he know about the dirty pics and the prostitution? ... Notice how all the pics hit the ... media the minute the divorce started? ...
    (rec.music.beatles)
  • Re: To people of Belarus from occupied Serbia
    ... make himself popular and get well paid is to digg out dirty things done ... Well, Luka may control media ...
    (soc.culture.belarus)
  • Re: Some help for newbie from gurus - Multiple Sources on a single track
    ... > I am trying to add multiple media to the same track. ... > The quick and dirty figure above shows 1 Track with 2 Media files back to ... AFAIK you must release the IAMTimelineSrc and IAMTimelineObj ...
    (microsoft.public.win32.programmer.directx.video)