Vautrin has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to create a Perl script to take a CD, and automatically rip it, encode it, organize the files, and save the data in a database so that I can tell the script to DJ for me. For instance, I want to be able to tell the program to [;ay x hours of music and the percentage of each genre to include. Furthermore, I want it to use Tk, so that it looks cool.
I am running into problems with cdparanoia. When cdparanoia runs, it outputs a very detailed status message to the screen. Is there a way to capture what cdparanoia is sending to the terminal, so that I can read in the data (i.e. the progress), and then use that to update a Tk based status bar?
I thought about redirecting the output of cdparanoia via a pipe to a perl script or something of that nature, but I was wondering if anyone knows of a more elegant way. Also, I already checked CPAN, and the only cdparanoia module I found, POE::Component::CD::Rip doesn't meet my needs.
Many thanks in advance,
Vautrin
Want to support the EFF and FSF by buying cool stuff? Click here.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Creating a Complete Wrapper for a Compiled Program
by ccn (Vicar) on Mar 30, 2004 at 19:23 UTC | |
by flyingmoose (Priest) on Mar 31, 2004 at 14:54 UTC | |
Re: Creating a Complete Wrapper for a Compiled Program
by saintmike (Vicar) on Mar 30, 2004 at 20:20 UTC | |
Re: Creating a Complete Wrapper for a Compiled Program
by matija (Priest) on Mar 30, 2004 at 19:24 UTC | |
Re: Creating a Complete Wrapper for a Compiled Program
by Three (Pilgrim) on Mar 31, 2004 at 20:41 UTC |