Unable to access TAR file


 
Thread Tools Search this Thread
Operating Systems HP-UX Unable to access TAR file
# 1  
Old 07-02-2009
Data Unable to access TAR file

hi friends,
I am using hp unix HP-UX B.11.11 .. Generally i do the compression to maintain the space availability . To compress the files first i used the TAR to collect all the files. it has done fine. when i am using command ls in the folder which has TAR file , it shows the TAR file existing . but, when i am using gzip command against this file it's not working other commands also not working against the TAR.
file permission is " -rw-rw-r-- "
I am unable to delete this file . please help me out . Smilie
Error it shows " No such file or directory " Smilie
# 2  
Old 07-02-2009
If your tar filename has special characters, you will have a problem....
redirect the output of ls to a file and see what you get.
ls > newfile

one more thing u need to use
Code:
tar -xvf <tar-file> to untar and tar -cvf <tar-name> <file> to tar the file....

Not having execute permission, does not matter.
You dont use gzip or gunzip for that, do you?
# 3  
Old 07-02-2009
Is the ownership set correctly? Does the filename contain any special/unprintable characters (you can check that with ll -b)?
For future reference, you can create a tar.gz in one step:
Code:
$ tar -cf - /path/to/save | gzip -9 > save.tar.gz

Saves on space, since only the tar.gz is created, instead of the tar & the (temporary additional space for the) tar.gz
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Unable to restore *.tar file

I tarred a directory to a different location. I then deleted the original directory. Now I need to restore the directory, and I am unable to do so (The contents do not get restored). However, when I type tar -tvf <tarfile), the list of contents are displayed : # tar -tvf lhs20170405.tar... (7 Replies)
Discussion started by: anaigini45
7 Replies

2. Shell Programming and Scripting

Unable To access array in awk

Hi, i have the following code in which i am passing array tldn in awk using -v option & despite of that condition is not getting matched,can somebody suggest how to handle shell arrays in awk tcount=(9875 9667) awk -F"\t" -v ltldn="${tldn}" 'NR==FNR {POSTPAIDMDNS=$2"|"$3;next} ... (6 Replies)
Discussion started by: siramitsharma
6 Replies

3. HP-UX

Unable to create a tar file due to link

Hi, I am trying to tar a directory structure. but unable to do due to a symbolic link. Please help indomt@behpux $ tar -cvf test.tar /home/indomt a /home/indomt symbolic link to /dxdv/03/ap1dm1 Thanks (1 Reply)
Discussion started by: nag_sathi
1 Replies

4. UNIX for Dummies Questions & Answers

tar unable to use command

Hello all... i am unable to use tar commands on my intel machine in solaris 10 by tying this "tar cvf /dev/rmt/mydata.tar/mydata" and created mydata directory, msg is "No:Missing Files" Please advise (5 Replies)
Discussion started by: VijaySolaris
5 Replies

5. AIX

P550 Unable to access Console

I have recently aquired the following machine: IBM,9113-550 Up until yesterday we could connect a dumb terminal to serial port 1 and get console login. However the dumb terminal died. We are now using a laptop with a null modem cable attached to serial port 1. This works perfectly for all of... (1 Reply)
Discussion started by: rsw7724
1 Replies

6. Shell Programming and Scripting

tar: unable to specify archive name with -p option

Hi, When I use -p option(preserve permissions) while creating tar archives, it throws error and creates archive in the name of 'p'. But without -p option I am able to create archive name as I mentioned. how do I work it out with --preserve-permissions? Any help is much appreciated. ... (3 Replies)
Discussion started by: learn more
3 Replies

7. Solaris

unable to access infodoc!!

Hi, I am refered to see Infodoc 80854. but I am not able to access from sun.com. Is there any precedure to view these?. Please guide me. Thanks in advance. (1 Reply)
Discussion started by: bpsunadm
1 Replies

8. Shell Programming and Scripting

Unable to access variable outside loop

I am unable to access the value set inside the loop from outside loop . Thought of taking this to forum , I had seen other replies also , where a pipe takes the execution to another shell and mentioned thats the reason we do not get the variable outside loop . But I am getting an issue and I am... (1 Reply)
Discussion started by: Armaan_S
1 Replies

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

10. Solaris

Unable to access home area

Good morning, I have a solaris 8 machine (Sunblade 1000) that is configured with NIS, I have checked everything I can think of to make sure everything is correctly configured which it appears it is but when I try to log into CDE it says it is unable to access my home area and it also does the... (1 Reply)
Discussion started by: Mr Pink
1 Replies
Login or Register to Ask a Question