The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: trapping errors
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-19-2008
TimHortons TimHortons is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 53
Smile trapping errors

I am using unixs script to submit programs (SQRS) and need to trap any time of error that is received once the job finishes.

Examples of the type of errors I am getting

Error! SQR Failed To Process
mkdir: Failed to make directory

These are showing up in a log file but I do not want to have to grep on the log file for every possible text string.

I am new to unix , although I have had exposure in the pass to it. Would welcome direction and help in how to code for errors.