gunzip unexpected end of file
Posted
by
Mark J Seger
on Server Fault
See other posts from Server Fault
or by Mark J Seger
Published on 2012-09-07T15:00:44Z
Indexed on
2012/09/07
15:39 UTC
Read the original article
Hit count: 218
compression
I like to write high volume data directly to a zip file via perl. Works like a champ! However, on some rare occasions I've found that gunzip can't uncompress them declaring an unexpected end-of-file. The thing is I can uncompress it with a simple perl script, which probably misses the corrupted record(s) at the end.
My question is, does anyone know of a way to use a standard utility to do the same thing? Maybe with a 'compress-as-much-as-you-can' switch?
-mark
© Server Fault or respective owner