Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2007 17:23:58 +0100
From:      Graham Bentley <admin@cpcnw.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   CLI CD-Audio Copying 'On The Fly!'
Message-ID:  <20070728162358.GA1207@cpcnw.co.uk>

Next in thread | Raw E-Mail | Index | Archive | Help

Hi All,

I found this little script on a web page somewhere sometime ago
and modified it slightly (replaced 'eject' with 'cdcontrol')

#!/bin/sh
for i in /dev/acd0t*
do
dd if=$i of=/usr$i.cdr bs=2352
done
cdcontrol -f acd0 eject
cd /usr/dev
for i in acd0t*cdr
do
mv $i track${i#acd0t}
done
burncd -f /dev/acd1 audio *cdr fixate
cdcontrol -f acd1 eject
cd /usr/dev
rm track*.cdr
echo "All Done!"

It works quite well but only writes after the entire
number of tracks have been written.

I was just wondering if its possible that extra logic
could be applied whereby as soon as the first track
is ripped then a second process starts writing it
and so on - kind of like CD to CD copying 'On the Fly!'

As I am no programmer I wondered if anyone had already
done this and wouldnt mind posting their script or
suggestions?

Thanks in advance ...




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20070728162358.GA1207>