|
script
#!/bin/ksh
grep "the requested operation was successfully completed" $1 >/dev/null
RESULT =`echo $?`
if [ $RESULT == 0 ]; then
echo "Continue"
else
echo "Stop"
fi
Assume this script file name is sample.sh. If your log file name is logfile, then in the command prompt give like this
$sample.sh logfile
|