Re: Adding MD5 to Image...

2004-08-25 Thread Robert Schiele
On Sat, Aug 14, 2004 at 11:26:04AM +1200, Volker Kuhlmann wrote: > > How about using tee(1)? You could have mkisofs write the image to > > stdout, then use tee to put it into a file as well as pipe it into > > md5sum. > > I've been thinking this myself, but where it falls flat is that it > requi

Re: Adding MD5 to Image...

2004-08-25 Thread Volker Kuhlmann
> > mkfifo /tmp/pipe > > md5sum > mkisofs ... | tee -a /tmp/pipe | cdrecord > $ mkisofs ... | tee >(md5sum) | cdrecord This one-liner is not equivalent to the 3 lines above, as stdout of md5sum also goes into cdrecord - this is however the desired effect. The first 3 lines could be made to achie

Re: Adding MD5 to Image...

2004-08-25 Thread Robert Schiele
On Wed, Aug 25, 2004 at 11:35:19PM +1200, Volker Kuhlmann wrote: > > $ mkisofs ... | tee >(md5sum) | cdrecord > > This one-liner is not equivalent to the 3 lines above, as stdout of > md5sum also goes into cdrecord - this is however the desired effect. Oops, sorry! But the fix is trivial: $ mki

Re: cdrtools-2.01a37 ready

2004-08-25 Thread scdbackup
> > ... _ non-zero _ pad bytes ... > > A short "is ok" or "better pad 300 kB zeros" would be of help. > Joerg > I cannot tell, better you use zeroes. Thanks, Joerg and Volker, for the advice. I'll keep padsize=300k with CDs. > > tradition suggest that TAO mode does not need to know the > > tra

Re: Adding MD5 to Image...

2004-08-25 Thread Volker Kuhlmann
> But the fix is trivial: > > $ mkisofs ... | tee >(md5sum >&2) | cdrecord That "fix" is unneeded :) because md5sum writes the sum to stdout, which already goes into cdrecord, so no need to redirect stderr as well. I tried bash -c 'echo bla | tee >(md5sum)' | od -tc There are 2 processes (tee,