Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catching belated errors in lp and mail

Status
Not open for further replies.

Matsul

IS-IT--Management
May 6, 2002
140
BE
I have a senario where commands like lp and mail fail due to lack of space in /var. I'd like to catch such an error in a script but $? show 0 as the error seems to occur later

ie
>cat sqlnet.log | mail -s "sqlnet.log" ms
>echo $?
0
>
>
>collect: Cannot write tfKAA36642

Any idea how such errors can be captured in a script.







 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top