The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 11-22-2007
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 500

Code:
if [ `grep "the requested operation was successfully completed" ${LOGFILE}` ]
then
  ... all ok ...
else
  ... gone south ...
fi

Off the cuff, so please test yourself. (just to be sure)

Last edited by Cameron; 11-22-2007 at 09:13 AM.. Reason: missed a '`'