Hi,

how could I get for a bash script the tracknumbers of a Audio-CD (CDDA)?
I want to rip it with cdparanoia and capture the graphical output which gives info about scratches and so on, therefor I cannot use the -B (batch) command but must use a loop of my own (so I must know how many tracks the CD has).
Is that info found somewhere in /proc/ ? A Audio-CD is not mounted, but it could be in /proc anyhow.

At the moment I start mplayer with invalid -ao so that is gives the info with
Code:
grep "Found audio CD with "
but that's surely an overkill.

Any idea how to capture also from a mc console (/dev/pts/N) or an xterm?

I only can capture when the script was started from a /dev/ttyN or /dev/vcN