[lug] Filling a CD

Gary Hodges Gary.Hodges at noaa.gov
Thu Jan 17 08:42:54 MST 2002


If I run "cdrecord dev=0,6,0 -atip" on a blank CD, two lines of the
output are:

  ATIP start of lead in:  -11569 (97:27/56)
  ATIP start of lead out: 359849 (79:59/74)

Can I use one or a combination of the two to determine how much the CD
can hold?  Specifically, if I run "mkisofs -q -v -r -J -l -print-size
CD" where 'CD' is a directory and the output is put in $dir_CD, I would
like to say something like:

if ($dir_CD <= 359849) {
    print "The contents of dir CD will fit on the disk\n";
}

Gary



More information about the LUG mailing list