1834757 Members
3060 Online
110070 Solutions
New Discussion

compress for windows

 
vikmos
Occasional Contributor

compress for windows

Hi, I made a file to be emailed as attachmentfor for viewing in Windows world.
I did compress like:
gzip $FILE
mv $FILE.gz $FILE.tgz

in 50% cases I can succesufully decompress my .tgz with winzip and open it. Otherwise
I'm getting errors with winzip (attributes missing) or end-of-line messed.
Original file is from MVS, no any low~ or high-values, was FTP to HP-11.00 without any options. I assume that problem is in compressing.
Thanks to all

Vittorio
4 REPLIES 4
Francisco J. Soler
Honored Contributor

Re: compress for windows

Hi Vittorio,

I don't know why you change the extension, winzip opens well the gz files from unix world.

If you want to open a tgz, you can do:

tar cvf file.tar file_to_compress
gzip file.tar

then uncompress it from windows, but i think it is not necessary to do that.

HTH
Frank.
Linux?. Yes, of course.
Jim Mallett
Honored Contributor

Re: compress for windows

Are you consistent in your FTP transfer method? Be sure that you specify binary rather than ascii for that transfer, especially with compressed data.

Jim
Hindsight is 20/20
Steven E. Protter
Exalted Contributor

Re: compress for windows

You might want to open up a CIFS/9000 Samba share on the HP-UX box. Then mistakes with binary/ascii with your ftp transfer will be eliminated.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ronelle van Niekerk
Regular Advisor

Re: compress for windows

Jim may be on the right track.
Make sure that you are transferring the files in binary mode.

And I agree with Francisco, you don't need to change the extension. WinZip see .gz files just fine.
rm -r /it/managers