I am trying to read data from an Audio CD in a SCSI CD drive in RedHat
6.2.
This script worked for me in 6.1, but I went and installed 6.2, and now
it is
broken. I get the following error:
open /dev/cdrom: Wrong medium type
This error does not occur if I have a data CD in the drive. Only audio
CDs.
Both RedHat 6.1 and 6.2 are using Perl version 5.005_03.
Does anyone out there have any Ideas what changed from RedHat 6.1 to
6.2?
############################ Script ############################
#!/usr/bin/perl
$cd_drive = "/dev/cdrom";
require 'errno.ph';
require 'linux/cdrom.ph';
open(CDROM, $cd_drive)or die "open $cd_drive: $!\n";
close CDROM
or warn "close CDROM: $!\n";
###################################################################
Thanks
--
Derek Tattersall: [EMAIL PROTECTED]
[EMAIL PROTECTED]
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.