Sponsored Content
Full Discussion: gzip or FTP problem?
Top Forums UNIX for Advanced & Expert Users gzip or FTP problem? Post 6771 by DGM on Wednesday 12th of September 2001 07:50:30 AM
Old 09-12-2001
Data gzip or FTP problem?

I hope someone can help me on this little problem.

Bit of background first. I've dumped an Oracle database to a plain text file that I wish to gzip then transfer via ftp to another machine. The dump and gzip runs fine and if I gunzip the file while still in unix the file looks fine. The problems occur once the file is FTP to a windows NT machine. The transfer goes fine and I end up with a zipped file on Windows that I can unzip using Winzip. The unzipped file opens ok as well. All looks ok until you scroll down to around the 1000 record. After then all the text is screwed up with all the spacing wrong.

It appears the the FTP transfer may be causing problems. The file is 500K before gzip and around 18K after. If the file is transfered without any compression then it opens without any problems at all.

Does anyone have any ideas why it is doing this or any other possible reasons?

The file needs to be compressed because it is too large to send across a slow link that we are using and ftp is the only real option we have for an automated transfer.

Thanks.
 

10 More Discussions You Might Find Interesting

1. 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

2. Solaris

FTP problem

Hi everyone , have a nice day i have 4 Sun Machines at my work , i have made few scripts which copies data from 3 of them to first one , then i have made another program in visual basic , which FTP to this first machine ( after every minute ) , get that data file and displays it on screen , i... (2 Replies)
Discussion started by: Dastard
2 Replies

3. Programming

problem about using zlib to uncompress gzip in memory

I wrote a function which for uncompressing data for gzip or deflate format using zlib,see followed code; source param is pointed to the compressed data,len param is the size of compressed data, dest param is for returning the address which pointed to the uncompressed data;the last gzip param tell... (0 Replies)
Discussion started by: iwishfine
0 Replies

4. 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

5. Shell Programming and Scripting

problem with ftp:

i have got 2 servers in unix(IBM AIX 5.3) namely below. test1 production1 i m trying to do ftp from test1 to production1. ------------------------------------------------------------ below the script called naveed1.sh which lies in test1,also it have two files called ... (2 Replies)
Discussion started by: ali560045
2 Replies

6. UNIX for Advanced & Expert Users

ftp problem

Dear friends, i am trying to login in to remote ftp type unix the error illegal ERPT command is coming. what is the solution. the output: Name (ftpser.xxxxx.gov.in:imdps): hmts 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary... (1 Reply)
Discussion started by: rajan_ka1
1 Replies

7. Shell Programming and Scripting

tar and gzip problem

Hi Guys, I have a few files. i want to tar these files and zip it using gzip it. -rw-r----- 1 magesh magesh 12940369 Jul 27 09:26 dcx_imds_c.asc -rw-r----- 1 magesh magesh 1221391 Jul 27 09:27 dcx_imds_h.asc -rw-r----- 1 magesh magesh 1105673 Jul 27 09:27... (6 Replies)
Discussion started by: mac4rfree
6 Replies

8. UNIX for Dummies Questions & Answers

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 gzip -f -S <file_name> 2 > <error_log_file> there is no error in log. it seems that the file gzipped properly. how this ... (3 Replies)
Discussion started by: dummydba
3 Replies

9. UNIX for Advanced & Expert Users

gzip vs pipe gzip: produce different file size

Hi All, I have a random test file: test.txt, size: 146 $ ll test.txt $ 146 test.txt Take 1: $ cat test.txt | gzip > test.txt.gz $ ll test.txt.gz $ 124 test.txt.gz Take 2: $ gzip test.txt $ ll test.txt.gz $ 133 test.txt.gz As you can see, gzipping a file and piping into gzip... (1 Reply)
Discussion started by: hanfresco
1 Replies

10. Shell Programming and Scripting

Problem untaring gzip

I'm having an issue extracting my tar.gz file. I am trying to compress all directories based on their last modified date (particularly their last modified month), and move them to a different directory by month. When I run my script everything seems to work ok and my compressed file gets moved to... (4 Replies)
Discussion started by: jrymer
4 Replies
GZFORCE(1)						      General Commands Manual							GZFORCE(1)

NAME
gzforce - force a '.gz' extension on all gzip files SYNOPSIS
gzforce [ name ... ] DESCRIPTION
gzforce forces a .gz extension on all gzip files so that gzip will not compress them twice. This can be useful for files with names trun- cated after a file transfer. On systems with a 14 char limitation on file names, the original name is truncated to make room for the .gz suffix. For example, 12345678901234 is renamed to 12345678901.gz. A file name such as foo.tgz is left intact. SEE ALSO
gzip(1), gznew(1), gzmore(1), gzgrep(1), gzdiff(1), gzexe(1) ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWgzip | +--------------------+-----------------+ |Interface Stability | External | +--------------------+-----------------+ NOTES
Source for gzip is available in the SUNWgzipS package. GZFORCE(1)
All times are GMT -4. The time now is 08:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy