I had already finished the script using growisofs but included mkisofs options (on right of /dev/sr0).
I am still not able to get a good handle on the Z/M question, dropped the -joliet-long and/or -J options, and don't use the -use-the-force-luke-xxxx stuff.
I used numbers to indicate which of 5 directories I want to run and a dry run indicator -- well FWIW here is its guts:
Code:
l=$@
m=$#
if [ "$l" == "" -o "$m" == "5" -o "$n" == "A" ]
then str="1 2 3 4 5"
fi
# Loop until there are no more characters in command line
# Do only as many iterations as there are arguements in command line
j=`echo $str | wc -w`
while [ $j != 0 ]
do
k=`echo $str | cut -d" " -f1`
str=`echo $str | cut -d" " -f2-`
case $k in
1) srcPathDir="/root" ;;
2) srcPathDir="/opt" ;;
3) srcPathDir="/home/a-user" ;;
4) srcPathDir="/home/reasyr" ;;
5) srcPathDir="/etc" ;;
*) echo -e "\n\tERR($0) Invalid arg(s): $@"
exit 1 ;;
esac
# Burn the resulting files to DVD
# NOTE: intentionally not using -use-the-force-luke=dao
# REMOVE COMMENT ON GROWISOFS:
#growisofs $isD -$IOK -speed=1 /dev/sr0 -o /ISO_BU${wdat}.iso \
# -R -r -nobak -allow-lowercase -l -L -allow-multidot \
# $srcPathDir
# Test display of DVD write line
echo "growisofs $isD -$IOK -speed=1 /dev/sr0 -o /ISO_BU${wdat}.iso" \
" -R -r -nobak -allow-lowercase -l -L -allow-multidot" \
" \"$srcPathDir\""
IOK=M
j=`expr $j - 1` # Decrement arg count
done
# To finalize the multisession DVD maintaining maximum compatibility:
# REMOVE COMMENT ON GROWISOFS:
#growisofs -M /dev/sr0=/dev/zero
Still don't know if this will reburn or only update, gotta test it.