I'm hoping someone can clear up my confusion about true/false in shell scripts versus C programming.
if tar -cpvzf xxxxxx.tar.gz reports ztemp > xxxxxx.log
gzip -9 xxxxxx.log
else echo bkup tar failed $?
When the tar command is successful (returns 0), it seems to me the "if" should return "FALSE", but it doesn't -- it returns "TRUE". When the tar command fails (i.e., returns value > 0), the "if" returns "FALSE", but it seems to me that's "TRUE".
(and thanks for any clarification)