I am running
find /home -print | backup -i -f /dev/rmt0 | tee -a logfile
and I always get $? as 0 even if the backup command fails.
Of course it must be because of the tee command but is there a way to leave the tee command and catch the error level of the backup command .
thanks
find /home -print | backup -i -f /dev/rmt0 | tee -a logfile
and I always get $? as 0 even if the backup command fails.
Of course it must be because of the tee command but is there a way to leave the tee command and catch the error level of the backup command .
thanks