Operating System - HP-UX
1822737 Members
4176 Online
109644 Solutions
New Discussion юеВ

zcat - No such file or directory...

 
SOLVED
Go to solution
Tami Doyen
Occasional Contributor

zcat - No such file or directory...

I am trying to uncompress a file, and use the:

% zcat FM_2002.05_common.tar.Z | tar xf -

command. I have full access to rwx in this directory, there is plenty of disk space, and I get the message:

No such file or directory
Tar: blocksize = 0; broken pipe?

What am I doing wrong?
4 REPLIES 4
Mark Fenton
Esteemed Contributor

Re: zcat - No such file or directory...

tar isn't finding the output of your zcat -- does the file exist?
Tami Doyen
Occasional Contributor

Re: zcat - No such file or directory...

the file FM_2002.05_common.tar.z exists in this directory.
Jeff Schussele
Honored Contributor
Solution

Re: zcat - No such file or directory...

Hi Tami,


If you're not in the same dir as the compressed file, you'll have to give the path to it - like

zcat /path/to/FM_2002.05_common.tar.Z | tar xvf -

If that fails you should test the integrity of the compressed file using gunzip as follows

gunzip -tv /path/to/FM_2002.05_common.tar.Z

If it complains about the file - then it's corrupted to begin with & nothing will extract it.

If you don't have gzip you can get it here - free

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gzip-1.3.3/

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Animesh Chakraborty
Honored Contributor

Re: zcat - No such file or directory...

Hi
Try in two lines
%uncompress FM_2002.05_common.tar.Z

%tar xvf FM_2002.05_common.tar
Did you take a backup?