[Gllug] CDROM type

David Irvine co2cool at yahoo.com
Wed Nov 14 15:40:29 UTC 2001


Hi guys,

I'm trying to write a program that will play mp3s, dvds or audio tracks
depending on what type of cd is in the drive, for example:

if 	type=Audtio then audio_menu
else if type=data   then Data_menu
else if type=DVD    then Dvd_menu
else do nothing

but what i need to know  is how to find out what kind of data is on the
cd or if it is a dvd, etc.  Is there a utility or file in  /proc etc
that can tell me this? I suppose i could just try mount -t iso9660 and
seeing if it works or not but there has to be a nicer way


Cheers

David



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list