in reply to Re: How do I get a CD's label?
in thread How do I get a CD's label?

Sorry I did not make my self very clear. I can do all of it except get the the CD label from the CD. I don't even know if linux can recognize these anyway. The CD label I am referring to is what results from the -V option in cdrecord. Does that make sense. Recursively going thru the directorys on the CD and reading id3 tags from the files is not a problem :)

Replies are listed 'Best First'.
RE: RE: Re: How do I get a CD's label?
by SuperCruncher (Pilgrim) on Jul 05, 2000 at 18:44 UTC
    Without knowing much about CD-ROM file systems (except that Joliet is the M$ 'extended' standard, as far as I know -- and is different from the ISO one), if you say that cdrecord -V gives you what you want, why don't you do:

    $cd_label = `cdrecord -V`;
    Obviously, this isn't very portable, and I try to steer clear of system calls unless they are absolutely essential, but if it's just a simple script for your own use, you may as well.....