Displaying 1 result from an estimated 1 matches for "ecom1".
Did you mean:
com1
2012 Aug 04
2
find errors in a directory of files
...n't work.
Here's what I was able to come up with:
#!/bin/bash
log1='/u01/app/oracle/admin/ecom/udump/*'
crit1=($(grep 'ORA-00600' $log1))
crit2=($(grep 'ORA-04031' $log1))
crit3=($(grep 'ORA-07445' $log1))
if [ $crit1 ] ; then
echo "$crit1 on ecom1"
status=2
elif [ $crit2 ]; then
echo "$crit2 on ecom1"
status=2
elif [ $crit3 ]; then
echo "$crit3 on ecom1"
status=2
fi
echo $status
exit $status
This is a very early version of the scripts, so as you can see I'm echoing
a test message at the...