gzip-gunzip a problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers gzip-gunzip a problem
# 1  
Old 01-28-2010
gzip-gunzip a problem

Hi all,
i have a gzipped file. <file_name>.gz . when i try gunzip this file i get,
invalid compressed data--format violated

this file gzipped like
Code:
gzip -f -S  <file_name> 2 > <error_log_file>

there is no error in log. it seems that the file gzipped properly. how this

happen ? it is possible that gzipped file correpted in os level ?

My boss does not meet this problem again. i want to ask that, is there a verify option in gzip-gunzip to sure the file gzipped properly.

thanks for answers

Last edited by pludi; 01-28-2010 at 04:41 AM.. Reason: code tags, please...
# 2  
Old 01-28-2010
If I run the command as you gave it, I'm getting an error:
Code:
$ gzip -f -S test.file 2 > error_log
gzip: 2: No such file or directory

Probably because you -S option is missing an argument, and you've put a space between the '2' and the angle bracket, which means you're not redirecting stderr as expected.

Try writing it as
Code:
gzip -f -S'' get_size.test 2> error_log

# 3  
Old 01-28-2010
Thanks but, actually, this problem happened once. primarily, i want to ask that a verify option for gzip-gunzip ?
# 4  
Old 01-28-2010
Use the '-t' option described in the gzip manpage. The status will be in $?.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extracting logs using gunzip awk and gzip

Hi All I am trying to use a hard coded script into shell scripting but I am unable to . Kindly find the Script below along with the command Please help gunzip -c FilePath/FileName_*.gz | awk '$0 > "" && $0 < ""'|\ gzip >> FilePath/Outputfile.log.gz I Am trying to use this... (9 Replies)
Discussion started by: pulkitbahl
9 Replies

2. SCO

gunzip problem

hi On one of our SCO 5.0.6 server gunzip doesn't work and I'm getting this error message: # gunzip dynamic linker: gunzip: symbol not found: ___requires_updated_system_library_se_ Killed What's missing? (0 Replies)
Discussion started by: ccc
0 Replies

3. Solaris

gunzip problem! unexpected end of file

I've downloaded the tomcat from the link below and ftp to Solaris by ftp in binary mode Ref: Index of /dist/jakarta/tomcat-5/v5.0.30/bin gunzip -c jakarta-tomcat-5.0.30.tar.gz | tar -xvf - gunzip: jakarta-tomcat-5.0.30.tar.gz: unexpected end of file tar: read error: unexpected EOF ... (8 Replies)
Discussion started by: sbox
8 Replies

4. Solaris

doubt reg gzip,gunzip

Hi, Can anyone let me explain the difference between tar , uncompress,gzip and gunzip commands. both gzip and gunzip are same i think correct me if am wrong. (1 Reply)
Discussion started by: rogerben
1 Replies

5. UNIX for Dummies Questions & Answers

Cloning OracleHome (gzip/gunzip Help)

Environment: ServerA - IBM AIX 5.2 ServerB - IBM AIX 5.2 I want to clone one of my oracle installation. The easiest way is to ZIP(possibly use gzip) the installed folder from the ServerA (Here Oracle is installed and working fine) , FTP to the ServerB(Here I want to have the installation... (4 Replies)
Discussion started by: aixhp
4 Replies

6. UNIX for Dummies Questions & Answers

gunzip error - not in gzip format

Hi, I am getting this error gunzip file1.tar.Z gunzip: file1.tar.Z: not in gzip format Any clues? This goes bad only in some recent installations of ids (5 Replies)
Discussion started by: eagercyber
5 Replies

7. Shell Programming and Scripting

gzip problem

Hi, I am quite new to unix. I need to do the following using gzip. a file suppose abc.gz is in the directory. I need to uncompress it and rename the uncompressed file to ecoes.dat. can anyon please help me in this regard?? (4 Replies)
Discussion started by: UBD
4 Replies

8. Shell Programming and Scripting

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... (6 Replies)
Discussion started by: rkrgarlapati
6 Replies

9. HP-UX

decompress in HPUX11 by Gunzip and gzip

Hello evrebody , I have HPUX-11, i try to install "Mozilla" and "unzip utillity" I cannot decompress file (F.tar.gz) or file(F.gz) by commandes: gunzip -dv F.tar.gz | tar -xvf gunzip F.tar.gz or gzip -dv F.tar.gz |tar -xvf gzip F.gz maybe someone know What's the reason? maybe i... (1 Reply)
Discussion started by: yanly64
1 Replies

10. UNIX for Dummies Questions & Answers

gunzip....problem

Hi........... i have downloaded...sunscreen3.1 lite frm sunfreeware .com and it is in tar.gz format..so i download gzip also... now pls tell me how to install gzip and how to unzip tht sunscreen tar.gz file..............after unzipping i have to untar the tar file or not.....pls tell me in... (2 Replies)
Discussion started by: Prafulla
2 Replies
Login or Register to Ask a Question