Ok, here I'm testing multi sessions CD-Writing.  Anyhow, my CD-Writer
doesn't require the -tsize parameter, but I used it anyhow just to see what
happens.

The way I wrote this image to the CD is I ran the first command for mkisofs
with the -print-size parameter as below.
mkisofs -J -R -U -V "Multi Session Test" -print-size multitest/

I grabbed the information, and stuck it into the cdrecord -tsize parameter
as below.
mkisofs -J -R -U -V "Multi Session Test" multitest/ | cdrecord
dev=0,0,0 -multi speed=2 -fs=6m -tsize=3640s -waiti -

Now, I was thinking it would be cool if mkisofs output the 3640, and only
the 3640 to stdout rather than stderr.  Why you ask?  Because, if I want to
make some backup scripts, or any other CD-Writing scripts, I might want to
do this.
mkisofs -J -R -U -V "Multi Session Test" multitest/ | cdrecord
dev=0,0,0 -multi speed=2 -fs=6m -tsize=`mkisofs -J -R -U -V "Multi Session
Test" multitest/`s -waiti -

Now I know it's a long line, but who cares when it's in a script right?  The
` is on the ~ key, and is not an apostrophe.


Doing it this way is much better, and is exactly what the cdrecord does with
the -msinfo parameter.  Take for instance my line below.
mkisofs -J -R -U -V "Multi Session Test 2" -M0,0,0 -C`cdrecord
dev=0,0,0 -msinfo` ./multitest2/ | cdrecord dev=0,0,0 -multi
speed=2 -fs=6m -tsize=3618s -waiti -

Notice the -C parameter has a cdrecord command in it with the -msinfo.
 The -msinfo data comes out to stdout, and not stderr so I'm able to put the
` around the cdrecord command which replaces the cdrecord command with it's
output only.


I'm hoping to get the Author's reply on this.

p.s.
It might be nice to have the multi-session example below in the man pages of
mkisofs and/or cdrecord.

FIRST SESSION
mkisofs -J -R -U -V "Multi Session Test" -print-size multitest/
mkisofs -J -R -U -V "Multi Session Test" multitest/ | cdrecord
dev=0,0,0 -multi speed=2 -fs=6m -tsize=3640s -waiti -

SUBSEQUENT SESSIONS
mkisofs -J -R -U -V "Multi Session Test 2" -M0,0,0 -C`cdrecord
dev=0,0,0 -msinfo` -print-size ./multitest2/
mkisofs -J -R -U -V "Multi Session Test 2" -M0,0,0 -C`cdrecord
dev=0,0,0 -msinfo` ./multitest2/ | cdrecord dev=0,0,0 -multi
speed=2 -fs=6m -tsize=3618s -waiti -


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to