gzip archives coming up invalid!

Chris W. Parker cparker at swatgear.com
Fri Jan 7 00:20:43 UTC 2005


Steve Phillips <mailto:steve at focb.co.nz>
    on Thursday, January 06, 2005 2:37 PM said:

> Okie dokie - in that case, you could probably expand your script to
> re-download the files via ftp once they had been uploaded. Then do the
> checks against the original (download them as a different filename or
> to a temp directory)
> 
> Basically, you have file integrity issues, the only real way to solve
> these if to verify the integrity of the files when you upload/download
> them.

Well the problem has been partially solved. I had a suggestion given to
me offlist that the problem could be because I was not explicitly
designating 'type binary' in my FTP command list. After doing this the
files started to be uploaded without being corrupted.

> Out of curiosity, where did you try to gunzip/gzip -t the files ? and
> if they were on a windows box, how did you get them back to the unix
> box ? 

The files originate on my linux server and are then FTP'd to a Windows
server. I can access them via a shared folder on the Windows server or
download them via FTP.

So at this point the upload is working fine and the file is uncorrupted
while sitting on the Windows server but I still can't download them via
FTP correctly. As was suggested to me offlist this is probably because I
need to explicitly set 'type binary' on the download as well.

In any case a solution has been reached.


Thanks for your time!
Chris.




More information about the redhat-list mailing list