Re: gzip file ftp'ed as ascii...



Brian Raiter wrote:
Is this or an equivalent gzip fixer available anywhere?

I've a 750M file, a .tar.gz on linux.

fixgz or ftp'ing as ascii again don't help.

There are 11097 CR/LF pairs in the file...


Did you ftp as ascii from MS to Unix, or from Unix to MS? The former
would probably be nearly impossible to fix; the latter might be
salvaged by running it through the following Perl program:

  perl -i.bak -pe 's/\r\n/\n/g' munged.tar.gz

You mention ftping as ascii again didn't help -- did you try ftping in
the opposite direction as the first time?

The transfer was ftp, accidentally in ascii mode, from Linux Mandrake 8.0 to Linux Debian 1:3.3.5-12.

I've been doing some further experiments.

Whenever the byte pair 0D 00 appears in my test source file, the destination file only has OD. The ftp process has deleted the trailing 00.

To restore this file I need to know if there is enough information in
the gzip format to detect which OD bytes need the trailing 00 adding back.

Best Wishes,
James

--
"Be excellent to each other", Bill & Ted
.



Relevant Pages

  • Re: Frontpage, CGI, perl and uploading
    ... Ron Symonds (Microsoft MVP - FrontPage) ... on my copy of FP 2003 CGI is defaulted to ASCII. ... > happily, once the permissions are properly set on the Unix side, FP ... when using FTP - the errors WILL happen, no matter how careful you are. ...
    (microsoft.public.frontpage.client)
  • Re: FTP serious error... HELP!
    ... Subject: FTP serious error... ... We are downloading Z/os 1.9 Serverpac but I cant see how I touched our ... I am not sure what UNIX "message catalog" is out of sync with your ftp ... Set 1 msg 2: 125 Sending file via NJE to requested destination. ...
    (bit.listserv.ibm-main)
  • RE: FTP has extra CR
    ... A vendor has been FTPing a file from their mainframe to our Unix ... Do one of us need to change an FTP parm? ... Then ftp the "output.file" to your z/OS system. ...
    (bit.listserv.ibm-main)
  • Re: ftp recursively
    ... Whether you're using ftp, rcp, or rsync is a completely separate issue to whether you're running over ssl. ... There are various clients and servers built on it, including the traditional ftp command-line tools on Unix and Windows. ...
    (comp.lang.python)
  • Re: resizing JPEGs --- SOLVED
    ... Unix systems, etc.), I'd probably switch to it, but I'm trying to ... then send me a patch file to B) windows ... I originally wrote JStrack for Unix, designing it to get its data ... ftp from the NHC/TPC's ftp site.... ...
    (comp.lang.tcl)