PDA

View Full Version : Catching returns from growfsiso in script


bluetick
February 3rd, 2009, 18:16
I am looking for a way to get the error and competion returns from growisofs. Simple version of section.
Thanks for any help.

if [ $USED -lt $BURNSIZE ] ; then
capcam
else
if [ $USED -ge $BURNSIZE ]; then
exec ${GROWISOFS} -dvd-compat -Z ${DEVICE} -J -R ${BURNLIST}

if "good return"; then
cdir ## clear dir
capcam ## restart capture
else
if "bad return"; then
ndir ## move things around till we fix problem
capcam
exit 1
fi


fi

danger@
February 3rd, 2009, 20:40
the return value is contained within the special variable called $?