On 06/17/2010 02:23 PM, Frank Murphy wrote:
On 17/06/10 18:51, Neville A. Cross wrote:
> I have been exploring options for Central America. After burning 75
> DVD and 75 CD at home over one weekend someone pass me a link to a
> project called turbojet.
>
>
http://turbojet.sourceforge.net/
I just got this (the black one)
to not use up a PC,
it copies and compares against original.
I had better result with this multiburn script:
#!/bin/bash
#
#Program to initiate cdrecord on multiple devices, recording on successive
#blanks until SIGINT (Ctrl-C) is received.
#help...
if [ $# == 0 ] || [ $1 == "-h" ] || [ $1 == "--help" ]
then
echo "This program starts cdrecord to burn one image file to
multiple devices,"
echo "ejecting the cd when recording has finished. When a blank CD
is inserted"
echo "into any of the specified drives, recording of the image
begins again."
echo ""
echo "Usage: $0 image devicelist"
echo ""
echo "'image' is the name of the image to be burned."
echo "'devicelist' must be a list of devices which cdrecord
understands -"
echo " see 'man cdrecord' for
details."
echo ""
echo "Do Ctrl-C to terminate when recording is finished."
exit 0
fi
#Arg check
if [ $# -lt 2 ]
then
echo "Not enough arguments. See '$0 -h' for help."
exit 1
fi
if ! [ -e $1 ]
then
echo "$1 does not exist. Exiting."
exit 1
fi
ISOFILE=$1
burndrive()
{
echo "Please insert a blank CD into $1 to begin."
while true
do
sleep 2
STATUS=`cdrecord -V --inq dev=$1 2>&1`
echo $STATUS | grep "medium not present" &> /dev/null
if [ $? != 0 ]
then
echo "CD loaded on $1. Continuing."
cdrecord --eject dev=$1 -data $ISOFILE &> /dev/null
case $? in
0)
echo "Burning completed successfully on drive $1."
echo "Insert a blank disc to continue on $1.";;
254)
echo "Disc in $1 is not blank."
echo "Please insert a blank disc in $1.";;
*)
echo "Unknown error on $1.";;
esac
fi
done
}
for go in $*
do
if [ $go == $1 ]
then
echo -n
else
burndrive $go &
PIDLIST="$PIDLIST $!" #Collect subshell PIDs
fi
done
#Kill subshells, then exit
trap "kill -9 $PIDLIST; exit 0" SIGINT
#This sleep loop is just to retain control of the console -
#for message output, and to catch Ctrl-C
while true
do
sleep 1000
done
Best regards.
--
Antonio Sebastián Sallés M.
Technical Account Manager @ RED HAT LATAM
phone: +56-2-582-91-01 / mobile: +56-9-8281-7161
www.latam.redhat.com