Miscellaneous stuff
Greg's home page
Greg's diary
Greg's photos
Greg's links
This page contains little things that I keep forgetting. The only connection is time.

Burning audio CDs

For some reason, burncd doesn't work on teevee:
=== root@teevee (/dev/ttyp4) ~ 66 -> echo burncd -f /dev/acd0 audio `ls -1rt *.wav` fixate
burncd -f /dev/acd0 audio Mozart---1-Kyrie.wav Mozart---2-Gloria.wav Mozart---3-Laudamus-te.wav
Mozart---4-Gratias.wav Mozart---5-Domine.wav Mozart---6-Qui-tollis.wav Mozart---7-Quoniam.wav
Mozart---8-Jesus-Christie.wav Mozart---9-Cum-sancto-spiritus.wav Mozart---10-Credo.wav
Mozart---11-Et-incarnatus-est.wav Mozart---12-Sanctus.wav Mozart---13-Benedictus.wav
Track-1-Allegro.wav Track-2-Andante-ma-adagio.wav Track-3-Rondo-Tempo-di-Minuetto.wav fixate
=== root@teevee (/dev/ttyp4) ~ 67 -> burncd -f /dev/acd0 audio `ls -1rt *.wav` fixate
next writeable LBA 0
writing from file Mozart---1-Kyrie.wav size 71490 KB
written this track 735 KB (1%) total 735 KB
Input/output error

next writeable LBA 472
writing from file Mozart---2-Gloria.wav size 22298 KB
written this track 735 KB (3%) total 1470 KB
Input/output error
With cdrecord, you need atapicam loaded, and it has this stupid requirement of the SCSI device number: Then run with:
=== root@teevee (/dev/ttyp4) ~ 93 -> cdrecord dev=1,0,0 -speed=2 -pad -audio `ls -1rt *.wav`
Starting to write CD/DVD at speed 4 in real TAO mode for single session.
Last chance to quit, starting real write    0 seconds.  Operation starts.
Track 01: Total bytes read/written: 106919568/106919568 (45459 sectors).

      Speed 4, not 2.  No feedback that it's running, iostat shows nothing.


Removing spaces from file names

# Replace spaces in names with -.
# This doesn't work for the same reason that spaces in names are such
# a pain in the first place.
spaceout ()
  (for i in $*; do echo mv \"$i\" `echo $i | sed "s:':-:g; s:^:':; s: :-:g; s:$:':"`; done)

Greg's home page Greg's diary Greg's photos
Valid XHTML 1.0! $Id: misc.php,v 1.1 2008/03/19 21:53:37 grog Exp $