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.
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.