I have the following lines in a script that is evaluating wrong.
I want to evaluate if PARAM1 or not PARAM2 then (do the then) else (do the else)
The log does not have any of the PARAM1 but it has the PARAM2 and is going to the "then'.
PARAM1=$(egrep -i -c "ORA-|rejected|Killed|skipped" "$log")
PARAM2=$(egrep -i -c "Server status = 0" "$log")
if [[ $PARAM1 -eq 0 || $PARAM2 -eq 0 ]]; then
(cat $TXTERROR;uuencode $ATTFILE Coldbackup-log.txt) | mail -s "$SUBJECT" $M
(cat $TXTDEPLOY;uuencode $ATTFILE Coldbackup-log.txt) | mail -s "$SUBJECT" $