From owner-freebsd-questions@FreeBSD.ORG Sat Jul 28 16:54:21 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DF5C16A468 for ; Sat, 28 Jul 2007 16:54:21 +0000 (UTC) (envelope-from admin@cpcnw.co.uk) Received: from 3bsd.cpcnw.co.uk (custompc.plus.com [81.174.174.115]) by mx1.freebsd.org (Postfix) with ESMTP id 9125713C45B for ; Sat, 28 Jul 2007 16:54:20 +0000 (UTC) (envelope-from admin@cpcnw.co.uk) Received: from 3bsd.cpcnw.co.uk (localhost.cpcnw.co.uk [127.0.0.1]) by 3bsd.cpcnw.co.uk (8.13.8/8.13.8) with ESMTP id l6SGNx7o001292 for ; Sat, 28 Jul 2007 17:23:59 +0100 (BST) (envelope-from admin@cpcnw.co.uk) Received: (from admin@localhost) by 3bsd.cpcnw.co.uk (8.13.8/8.13.8/Submit) id l6SGNwpu001291 for freebsd-questions@freebsd.org; Sat, 28 Jul 2007 17:23:58 +0100 (BST) (envelope-from admin@cpcnw.co.uk) X-Authentication-Warning: 3bsd.cpcnw.co.uk: admin set sender to admin@cpcnw.co.uk using -f Date: Sat, 28 Jul 2007 17:23:58 +0100 From: Graham Bentley To: freebsd-questions@freebsd.org Message-ID: <20070728162358.GA1207@cpcnw.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: CLI CD-Audio Copying 'On The Fly!' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jul 2007 16:54:21 -0000 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 ...