tar include list


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers tar include list
# 1  
Old 07-09-2010
tar include list

Hi,

I am tarring a file as below.

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

HTML Code:
tar -cf TMP_LOG_TAR.tar -I  TMP_LOG_TAR.out
gzip TMP_LOG_TAR.tar
~Vinodh
# 2  
Old 07-09-2010
You create a gzip-archive and write
Quote:
But it fails to open the gz file in the mail
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".
# 3  
Old 07-09-2010
Sorry for confusion.

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"
# 4  
Old 07-12-2010
pls provide the script which s used for sending mail.........!
# 5  
Old 07-13-2010
I resolved.
# 6  
Old 07-13-2010
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 Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

2. Shell Programming and Scripting

Create unique tar archives from a list of directories

I'm looking to archive a client directory from a CIFS share There are multiple directories that will be stored in a text file and I'm looking to create an individual tar archive of each folder in the directory. I've tried a number of commands to no avail. Here's what I would like. ... (2 Replies)
Discussion started by: Steelysteel
2 Replies

3. UNIX for Dummies Questions & Answers

shell scripts - list dead users accts and include a count at the end?

I am trying to show the number of dead accts or false shells running and include a count at the end. Does anyone know how to go about this? Thanks - citizencro (3 Replies)
Discussion started by: citizencro
3 Replies

4. Shell Programming and Scripting

list content of tar

Dear Friends , $tar tf testing.tgz a b c d e $tar tf testing.tgz a a $tar tf testing.tgz a a a tar: a: Not found in archive tar: Error exit delayed from previous errors I don't know the reason, why last command got failed .How to solve above problem . (1 Reply)
Discussion started by: dharanivasan
1 Replies

5. Shell Programming and Scripting

TAR Files Argument list too long error

Hi, I have a requirement where I need to TAR more than 50K files. Even though I can do TAR successfully on few 100s of files, but whenever Im trying to TAR the entire 50K files, I am getting the error message : Argument List Too Long. Please suggest how can i avoid this error. Im... (2 Replies)
Discussion started by: unx100
2 Replies

6. Shell Programming and Scripting

Tar: Parameter list is too long

Hi all, I have a lot of files in my audit log directory which i am trying to tar. However, i hit the below error: ksh: /usr/bin/tar: 0403-027 The parameter list is too long. Is there any work around to resolve this problem? I need to tar all the files up. Thanks. (5 Replies)
Discussion started by: ahSher
5 Replies

7. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

8. Solaris

tar exclude list

I have solaris 8, I want to create tar for all files under this directory structure #/export/home/atg/Dynamo/home There is a subdirectory under this tree called servers/supersds/logs I want to exclude logs subdirectory so I created exclude list which contains servers/supersds/logs But tar... (2 Replies)
Discussion started by: Tirmazi
2 Replies

9. UNIX for Dummies Questions & Answers

why does tar sometimes include directory information?

hi, say I have dirA/file1 dirB/file2 and I tar them up, and then do zcat Tar.tar | tar tvf - Sometimes I will see: dirA/ dirA/file1 dirB/ dirB/file2 yet other times I will see (4 Replies)
Discussion started by: JamesByars
4 Replies

10. UNIX for Dummies Questions & Answers

arg list too long when trying to tar files

Hi, I am trying to perform this task: tar -cvf tar.newfile ??????.bas I got error "arg list too long". Is ther any way around? I have about 1500 file need to be tar together. Thanks in advance (5 Replies)
Discussion started by: jds3
5 Replies
Login or Register to Ask a Question