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 -->
  #1 (permalink)  
Old 07-17-2008
adzuanamir adzuanamir is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 40
how to display this.....

Hi...
I have this sql script and i have spool this output to the name backup_status.log

START_TIM END_TIME STATUS
--------- --------- -----------------------
14-JUL-08 14-JUL-08 COMPLETED WITH ERRORS

How to use IF statement in order to cut and email the status if the status for that day backup is COMPLETED WITH ERRORS??

I dont want to trigger the email with COMPLETED status, only trigger the email when STATUS is COMPLETED WITH ERRORS...

I will cronjob the sql script to monitor my everyday backup