On 10/14/05, David M. Cook <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 14, 2005 at 06:40:35PM -0700, Carl Lowenstein wrote:
>
> > #!/bin/sh
> > mkdir -p $1
> > #######
>
> Thanks, it's all coming back to me now. Here's the whole script, meant to
> rip a CD to a flac file, get the cddb info (cddb_query is part of the
> libcddb package), and convert the toc file to a cue file (using a program
> found on freshmeat; toc2cue from the cdrdao package doesn't seem to work for
> me).
>
> #!/bin/sh
>
> DEVICE="ATA:1,0,0"
> DATAFILE="data.wav"
> TOCFILE="contents.toc"
> CUEFILE="`basename $TOCFILE .toc`.cue"
>
> mkdir -p $1 || exit 1
> pushcd $1
> cddb_query read | tee cddb_info.txt
> cdrdao read-cd --device $DEVICE --with-cddb --datafile $DATAFILE contents.toc
> flac --endian=big --bps=16 --sample-rate=44100 --channels=2 --sign=signed \
> $DATAFILE
> cueconvert $TOCFILE $CUEFILE
Couple of comments:
Shouldn't your script use fully qualified paths for commands it
invokes, or else set $PATH to fit your environment?
What is "pushcd"?
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg