Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unzipping server side

Status
Not open for further replies.

altaratz

ISP
Apr 15, 2001
73
US
Hi -

I'm telnetted into my web site, and I'm trying to unzip a zipped text file I have through a telnet prompt. I thought that the command line would be this:

gunzip -cd filename.zip | tar xvf -

But it won't unzip - can someone pls. tell me what I'm doing wrong? Thanks

Ethan
 
Files created by zip can be uncompressed by gzip only if
they have a single member compressed with the 'deflation'
method. This feature is only intended to help conversion
of tar.zip files to the tar.gz format. To extract zip
files with several members, use unzip instead of gunzip.

could this be the problem?

stan
 
Well, if it were the problem, I would have thought the error would have told him pretty much that. I've sure seen that.

But that's the point: I seriously doubt that gunzip said "I won't unzip that". Instead, I'm quite sure that it said something else that you (Ethan) could present here and that one or more of us could help you interpret it.

Which would save unecessary (though good chance of being accurate) guessing.. Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Still didn't figure it out - I have just converted to tar.gz files and that's working better - thanks for the input and time, however.

Ethan
 
Hi,

If you install the 'unzip' rpm then you can use that to unzip zip files. See also --> ftp://ftp.info-zip.org/pub/infozip/Info-ZIP.html

Regards

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top