Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Issue: Compress in unix server and FTP to windows and open the compress file using Winzip Post 302366796 by pludi on Friday 30th of October 2009 10:35:48 AM
Old 10-30-2009
That's because of a limitation in the ZIP format specification (see Info-ZIPs FAQ). The algorithm ZIP uses uses 32bit pointers, which limits the file size to 2^32 Bytes, or 4 GB.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unix compress-Wintel uncompress

Is it possible to compress a large Unix file (16GB), then FTP it to a Wintel machine running XP then uncompress? I have already attempted to FTP the 16GB file but it stops at 4GB because XP FAT32 formtted drives will only allow 4GB file sizes. The 16GB file in Unix(Solaris) compresses to... (3 Replies)
Discussion started by: rampart1
3 Replies

2. UNIX for Dummies Questions & Answers

Compress in Unix

I tried Compress ; gzip and bzip . And they don't always compress files to small . Can someone tell me if there is any compress tool better than those ? thanks (1 Reply)
Discussion started by: Sasuke
1 Replies

3. HP-UX

Compress while wrting to a file using a unix pipe

I would like to know if the following can be done. route output from an sql select directly to a pipe and compress it at the same time. regards Albert (2 Replies)
Discussion started by: booyena1
2 Replies

4. UNIX for Dummies Questions & Answers

compress a file in unix

Hi, I want to compress a dmp file and ftp to another machine.pls tell me the steps to compress and uncompress the file in unix Thankyou (5 Replies)
Discussion started by: rujupriya
5 Replies

5. Shell Programming and Scripting

Compress a file before ftp

Hi, I have a script that ftp's to over 100 deifferent servers in turn, gets a specific file, renames it and drops it onto a local backup server. The files vary in size from 4mb to 150mb. I am within a secure intranet to security with ftp is not an issue. I want to auto compress the file... (1 Reply)
Discussion started by: MrMac
1 Replies

6. Shell Programming and Scripting

unix script to takes the old data from a TXT file and compress them into new file

Hi, I am looking for the unix script which can takes the 2 month old data from a TXT file (there is one txt file in whiche messages are appended on daily basis) and compress them into new file.Please halp me out. (2 Replies)
Discussion started by: vpandey
2 Replies

7. Shell Programming and Scripting

Compress in UNIX ftp the uncompress in windows server

Hi all, I need a shell script that will compress all the files in the UNIX box say /output/foldre/OUT/*.out. 1. I need to compress all the .out files present in this path. 2. The compressed files shuld be FTPed to Windows server say C:\Myfiles 3. Then the FTPed files should be... (3 Replies)
Discussion started by: Codesearcher
3 Replies

8. Shell Programming and Scripting

UNIX script to FTP file from UNIX server to windows

Hi, I am new to this subject.....Can someone please help me out with the script... unix usernm "sdhftst" unix pwd "chsd13" windows usernm "dfghtst" windows pwd "chsd13" path..../xxx/xxxxx/xxxxxx/xxxxxxx please can u get me a script...its only one file to get ftp. Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies

9. Shell Programming and Scripting

Need help for ftp a file from unix to windows server

I have a problem with ftp. i want to ftp a file "file.txt" from unix box to windows server. The destination folder is something like this: "\\windowsservername\apps\is\" FTPUSER=ftp1 FTPPASS=**** ftp -v -d -n > ftplog <<!EOF open windowsservername user $FTPUSER $FTPASS cd... (3 Replies)
Discussion started by: Diddy
3 Replies

10. Shell Programming and Scripting

FTP using script not working (for transfering file from a remote unix server to windows PC.)

hi, Im using the following code for FTP #!/usr/bin/ksh ftp -v -n "10.29.45.11" << cmd user "mahesva" "mahesva123" get rtl.tar quit cmd Below is the log when i run the above code ********************************** Connected to 10.29.45.11. 220 (vsFTPd 2.0.1) 530 Please login with USER... (20 Replies)
Discussion started by: dll_fpga
20 Replies
ns_zlib(3aolserver)					     AOLserver Zlib Extension					       ns_zlib(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
ns_zlib - Zlib compression support SYNOPSIS
ns_zlib compress string ns_zlib gunzip file ns_zlib gzip string ns_zlib gzipfile file ns_zlib uncompress string _________________________________________________________________ DESCRIPTION
The ns_zlib command enables compressing and uncompressing of strings or files. The command is available if the nszlib.so module is loaded into AOLserver or the libnszlib.so, nszlib.dll, or libnszlib.dylib dynamic library is loaded using the load command in a suitable tclsh such as nstclsh. ns_zlib compress string This command compresses the given string and returns a Tcl byte array object with the compressed data. ns_zlib gunzip file This command uncompresses the contents of the given gzipped file and returns a string as the result. ns_zlib gzipfile file This command is similar to the gzip shell routines, compressing the given file into a new file with the .gz extension. If success- ful, the original uncompressed file is deleted. ns_zlib uncompress bytearray This command takes a byte array object which includes compressed data and returns an uncompressed string object. EXAMPLES
The following examples demonstrate compressing and uncompressing a string; # Compress Tcl string set test "This is test string" set data [ns_zlib compress $test] set test [ns_zlib uncompress $data] --> returns "This is test string" # Compress the string into gzip format set gzip [ns_zlib gzip $test] # Save as gzip file set fd [open /tmp/test.gz w] fconfigure $fd -translation binary -encoding binary puts -nonewline $fd $gzip close $fd # Uncompress gzipped file set test [ns_zlib gunzip /tmp/test.gz] --> returns "This is test string" SEE ALSO
ns_adp_ctl(n), load(n) KEYWORDS
GZIP, compress, uncompress AOLserver 4.5 ns_zlib(3aolserver)
All times are GMT -4. The time now is 02:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy