576 IBM Tivoli Storage Manager in a Clustered Environment
fi
#
# Wait for all VerifyDevice processes to complete
#
wait
# Check return codes from all VerifyDevice (verdev/verfcdev) processes
integer allrc=0
tty=$(tty)
if [ $? != 0 ]
then tty=/dev/null
fi
jobs -ln | tee $tty | awk -v “encl=Done()” ‘{print $3,
substr($4,length(encl),length($4)-length(encl))}’ | while read jobproc rc
do
if [ -z “$rc” ]
then rc=0
fi
i=0
while (( i < ${#process[*]} ))
do
if [ ${process[i]} = $jobproc ] ; then break ; fi
i=i+1
done
if (( i >= ${#process[*]} ))
then
echo “Process $jobproc not found in array!”
exit 99
fi
if [ $rc != 0 ]
then
echo “Attempt to make offline storage device ${device[i]} available ended
with return code $rc!”
allrc=$rc
fi
done
########################################### ...