[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Thu, 16 Dec 2004 00:12:53 -0000 "Jonathan Melhuish" <jon@xxxxxxxxxxxxxxxx> wrote:
Hi all, It's been a while since I last posted, I haven't really been keeping up with the list, sorry! I've started the first year of a BSc in Computer Science and Artificial Intelligence at Birmingham Uni. It's really interesting course, but time seems to fly by without me making much progress on my various linux projects... I blame all this "socialising" malarkey! ;-) One of my ongoing projects is to make a headless box act as a network server and streaming audio jukebox. As part of this, I'd like to make an interfaceless CD copier that works like this: * If an audio CD appears in the drive, rip it (using shell script) * If there is also a blank CD-R in the burner, burn a copy from ripped files Has anybody got any idea how I could do this? Is there any way to start a script when an audio CD is detected? Or just probe regularly to see if there is one there? Cheers, Jon
I was involved in a project a while ago (I wrote the initial man pages for it, no coding involved on my part since I'm crap at it). It's called CDDE. Basically it's a daemon that (I think) polls the drives periodically (user definable in the config file) for what type of disc has been inserted. The config file also contains details of what actions to perform depending on what type of disc is inserted, and you can have different actions for different drives. The site is at: http://ericlathrop.com/cdde/ The basic config file looks like this: <?xml version="1.0"?> <cdde delay="5000000"> <drive path="/dev/hdc"> <audio command="dosomething audiocd %dev% %mnt%"/> <blank command="dosomething audiocd %dev% %mnt%"/> <data command="dosomething audiocd %dev% %mnt%"/> <dvd command="dosomething audiocd %dev% %mnt%"/> <mixed command="dosomething audiocd %dev% %mnt%"/> <svcd command="dosomething audiocd %dev% %mnt%"/> <vcd command="dosomething audiocd %dev% %mnt%"/> </drive> <drive path="/dev/hdd"> <audio command="dosomething audiocd %dev% %mnt%"/> <blank command="dosomething audiocd %dev% %mnt%"/> <data command="dosomething audiocd %dev% %mnt%"/> <dvd command="dosomething audiocd %dev% %mnt%"/> <mixed command="dosomething audiocd %dev% %mnt%"/> <svcd command="dosomething audiocd %dev% %mnt%"/> <vcd command="dosomething audiocd %dev% %mnt%"/> </drive> </cdde> Grant. -- Artificial intelligence is no match for nuratal stidutipy. -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.