here is a script that help to burn plenty of data you want to keep all together in respective directories ~like MP3 :-)
basicly it just arrange size of directories to best fit on a CD, trying to fill left space on CDs with smaller directories I've saved 8 CDs over 72 using this tip
#!/usr/bin/perl use strict; use warnings; my ($k,$nom); my $maxsize = 690_000; my $makeiso = 0; my $pattern = "*"; my @CD = ([0,[]]); my $i; my $inserted = 0; use Data::Dumper; for (@ARGV) { $maxsize = $1 if /-ma*x*s*i*z*e*=(\d+)/; $makeiso = 1 if /-mkisofs/; $pattern = $1 if /-pattern=(.*)/; die "usage $0 -max=xxx (maxsize in K) -mkisofs -pattern='*.gz' -help" if (/-he*l*p*/) ; } my $pid = open(SOURCE, "du -sk $pattern|sort -nr|") or die "Couldn't g +et SOURC while (<SOURCE>) { chop; ($k ,$nom ) = split /\t/,$_,2; $inserted = 0; if ($k > $maxsize) { print '"' . $nom . '"' . " out of Range $k\n"; next; } foreach $i ( 0 .. $#CD ) { my $rcontent = \@{$CD[$i]} ; if ($rcontent->[0] <= ($maxsize - $k)) { $rcontent->[0] = $rcontent->[0] + $k; push @{$rcontent->[1]},$nom; $inserted = 1; } last if $inserted; } if (! $inserted) { push @CD,[$k,[$nom]] }; } close(SOURCE) or die "Couldn't close: $!\n"; if ($makeiso) { foreach $i ( 0 .. $#CD ) { my $rcontent = \@{$CD[$i]} ; print "mkisofs -o cd$i.iso " . join " ", map {qq/'$_'/} +@{$rcontent->[1]}; print "\n"; } } else { $Data::Dumper::Varname="CD"; print Data::Dumper::Dumper(@CD); }
it's up to you to grep the output for setting your burn process.
on the advice of b10m I've make a mkisofs output
hope you find it usefull

In reply to quick CD burner Selector/Optimiser by dominix

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.