Sample Upgrade Script (cont.)
/bin/echo "*******************************************************"
/bin/echo "* Problem Detected by UpdateClearCase *"
/bin/echo "* Upgrade terminated with non-zero EOT = $Result "
/bin/echo "* sending email with log *"
/bin/echo "*******************************************************"
( /bin/echo "UpdateClearCase: Problem Detected" ; \
/bin/echo "Machine Name: $MachName" ; \
/bin/echo "Problem Description: Upgrade Terminated with non-zero EOT = $Result" ; \
/bin/echo " "; /bin/echo "Contents of Install Log: "; /bin/cat $InstallLogFile1) | \
Mail -s "UpdateClearCase Problem Detected" $MailDest
/bin/rm -f $InstallLogFile1 $InstallLogFile2
( /bin/echo "UpdateClearCase: Update on $MachName Successful"; \
/bin/cat $InstallLogFile1 ) | \
Mail -s "UpdateClearCase Successful on $MachName" $MailDest
/bin/rm -f $InstallLogFile1 $InstallLogFile2