[PLUG] cdrecord commands-how does this look?

Rich Shepard rshepard at appl-ecosys.com
Thu Feb 12 11:13:02 UTC 2004


On Thu, 12 Feb 2004, Mike De La Mater wrote:

> What's the $* for? it looks like the file name spec.

Mike:

  Here's the context. On Wed May 15 13:39:04 2002, Jay Pfaffman
<pfaffman at relaxpc.com> posted to the xfce mail list:

 I've got a couple scripts that call them with the
various arcane switches that I like. . .

mkimage:

    #!/bin/sh
    if test $# -lt 2 ;
    then
    echo $0 imagename directoryname
    echo "Write an iso filesystem of directoryname with Rock Ridge and Joliet "
    echo "extentions, as well as Mac-HFS extensions to imagename.  The volume will"
    echo "be named directoryname on Macs, PeeCees and even Solaris."
    exit
    fi

    IMAGE="$1"
    SOURCE="$2"
    shift 2
    cd "$SOURCE"
    rm -f "$SOURCE.ps" "$SOURCE.pdf" "$SOURCE.txt"
    mp3report --template=/home/pfaffman/bin/mp3report.support/textonly.html -o "$SOURCE.txt" .
    cd ..
    cdlabelgen -t /usr/share/cdlabelgen/envelope.ps -f"$SOURCE/$SOURCE.txt" -o "$SOURCE/$SOURCE.ps" -c "$SOURCE" -s " "
    ps2pdf "$SOURCE/$SOURCE.ps" "$SOURCE/$SOURCE.pdf"
    mkhybrid -a -hide-joliet ".Apple*" -r -hfs -no-desktop --exchange --netatalk -map /home/pfaffman/bin/apple-map -J -V "$SOURCE" -o "$IMAGE" $* "$SOURCE"
cddatawrite:

    #!/bin/sh
    echo Pressing $*
    cdrecord -v speed=8 dev=1,0,0 -eject $*
    play /usr/share/sounds/KDE_Beep_RimShot.wav &

cdaudioread:

    #!/bin/sh
    cd /home/tmp
    disc-cover
    rm -f toc-file data.bin *.wav
    # relax
    # cdrdao read-cd   --paranoia-mode 3 --eject --source-device 0,5,0 $* toc-file
    cdrdao read-cd  --paranoia-mode 3 --driver generic-mmc --eject --source-device 1,0,0 $* toc-file
    play /usr/share/sounds/gnobots2/yahoo.wav &

cdaudiowrite:

    #!/bin/sh
    cd /home/tmp
    echo Pressing data.bin
    #cat toc-file
    cdrdao write --driver generic-mmc --reload --eject --device 1,0,0 $*toc-file
    play /usr/share/sounds/startup1.wav &

  These may give you some ideas. Also, could some of the environment
variables need to be explicitly set?

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com>




More information about the PLUG mailing list