First,TMP_LOG_TAR.out is file which contain file path to include the file when i do tar.
Second the, i am doing gzip the tarred file.
Third, Sending a mail with gz file as attachment.
But it fails to open the gz file in the mail
tar -cf TMP_LOG_TAR.tar -I TMP_LOG_TAR.out
gzip TMP_LOG_TAR.tar
I do not know what you mean by that but I suppose you want to attach that gzip-archive to the mail?
If this is the problem, you might either want to post your error output since you do not show how you try to attach it or just search this forum for strings like "mail attachment uuencode".
I mean .gz file(archive file). I am sending a mail from shell script by attaching this archive fail*xxxx.tar.gz). But when i tried to open with zip software I get an error as "not a valid archive file"
Would be nice to tell it what it was so other people having similar problems might benefit of your answer here.
This forum is not only about solving your own problems but sharing wisdom