replace line: grep '::Error::' $OUTPUTFILE | tee -a $LOGFILE $OUTPUTFILE
with line: grep '::Error::' $OUTPUTFILE > /tmp/xXxXxXxX.yYx
to avoid loops with the tee append