![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gzip problem | UBD | Shell Programming and Scripting | 4 | 12-12-2007 07:32 AM |
| problem about using zlib to uncompress gzip in memory | iwishfine | High Level Programming | 0 | 03-24-2007 10:56 PM |
| tar/gzip/gz...which one to use? | abhijeetkul | UNIX for Advanced & Expert Users | 5 | 03-24-2006 12:00 AM |
| using gzip | nattie_h | UNIX for Advanced & Expert Users | 2 | 11-15-2002 08:28 AM |
| gzip or FTP problem? | DGM | UNIX for Advanced & Expert Users | 2 | 09-12-2001 01:13 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
gzip problem
Hi All,
I am zipping a file using gzip -cq XYZ.txt > XYZ.txt.gz command. file got created with name XYZ.txt.gz but when i execute the following command i am getting errors, $ gzip -t XYZ.txt.gz gzip: XYZ.txt.gz: invalid compressed data--crc error gzip: XYZ.txt.gz: invalid compressed data--length error What could be problem, where i am doing wrong. Please help me out. Regards, Ravi Kumar Garlapati |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
-q option of gzip supresses all warnings. You may have missed some important message there. Try running the command without -q option.
|
|
#3
|
|||
|
|||
|
i did not get any warnings,
i tried this by gzip -c XYZ.txt > XYZ.txt.gz command aswell. still the same errors are encountered. i am unable to unzip the file. Last edited by rkrgarlapati; 09-18-2006 at 11:34 PM. |
|
#4
|
|||
|
|||
|
Can i know reason of getting these errors.
$ gzip -t XYZ.txt.gz gzip: XYZ.txt.gz: invalid compressed data--crc error gzip: XYZ.txt.gz: invalid compressed data--length error |
|
#5
|
||||
|
||||
|
These errors mean that your gz file is corrupt. There could have been an error while writing the file while running gzip -cq. As Yogesh has said before, try running the gzip -c command again without the -q option.
|
|
#6
|
|||
|
|||
|
gzip automatically stores the zipped file in XYZ.txt.gz, you do not need to do a redirect. What you are doing with the redirect is storing any gzip messages in XYZ.txt.gz, instead of the actual zipped data.
Just try "gzip XYZ.txt" |
|
#7
|
||||
|
||||
|
Quote:
|
||||
| Google The UNIX and Linux Forums |