Sponsored Content
Full Discussion: how to compress .zlib file
Top Forums UNIX for Advanced & Expert Users how to compress .zlib file Post 302191601 by wrapster on Saturday 3rd of May 2008 02:34:59 PM
Old 05-03-2008
how to compress .zlib file

Hi all,

I wanted to know how to compress a .zlib file..
an working on unix
so pls suggest accordingly.
the file is pretty big(500 mb)
also i would like to know any weblinks where i can get more info on various compressions commands in unix
i have tried zip,compress commands
but i have not achieved the amout of compression i wanted to.
may i know how to counter this!!

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[help] Cant compress file

Anybody know what happened here? 162 lab2-36:~/try_direct/another> compress url.txt url.txt: -- file unchanged (8 Replies)
Discussion started by: endeavour1985
8 Replies

2. Programming

uncompress of zlib

When I gzopen & gzread from a gzip file, it works OK. But I when I try to uncompress the same data from memory (either by reading to memory with fread or mmap()ing) using decompress, I get Z_DATA_ERROR. Is it because gzip file has some kind of headers that uncompress doesn't want? How can I get... (3 Replies)
Discussion started by: rayne
3 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. UNIX for Advanced & Expert Users

compress more than one file

hi, I need to compress a couple files in a directory.i tried using tar cvf filename1 filename2 but i am not able to open tar file. please suggest how to compress more than one file in to same file thanks in advance (2 Replies)
Discussion started by: prasee
2 Replies

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

6. UNIX for Dummies Questions & Answers

Issue: Compress in unix server and FTP to windows and open the compress file using Winzip

Hi All ! We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows. I have used the utility ZIP like the below. zip -e <newfilename> df2_test_extract.dat but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies

7. BSD

Installing zlib

Is there a port or shorthand way of installing the zlib library on FreeBSD? I currently use the following: wget http://zlib.net/zlib-1.2.5.tar.gz tar zxf zlib*.gz cd zlib*\. ./configure --libdir=/usr/lib --includedir=/usr/include make install clean This is somewhat contrived code and for a... (4 Replies)
Discussion started by: figaro
4 Replies

8. Shell Programming and Scripting

zlib.h in custom path

I am trying to configure gpac. I get the error as follows. # ./configure error: zlib not found on system or in local libs I have installed zlib on custom path /usr/local/myapps. I know the above error occurs when devel package or .h file is not present. Its present on the server. # ll... (7 Replies)
Discussion started by: anilcliff
7 Replies

9. UNIX for Advanced & Expert Users

Problem compiling glib using static zlib

Hello I have been trying to compile glib 2.28 with needs Zlib. During the compilation process I received these messages Then giving a look at the configure of Zlib, there was an option to static link it and I obviously used it. So I think I can solve it by compiling a shared zlib, or by... (4 Replies)
Discussion started by: colt
4 Replies

10. Shell Programming and Scripting

Compress every file

Dear Experts, I am new to this forum. Thank you for moderator to allow me to join. I have a question about automatic compression using sh and crontab on an application which runs on the Suse Linux Server 11 SP4. My question is how to compress every file in a directory into its own tar... (5 Replies)
Discussion started by: Steven_2975
5 Replies
ZZIP_FOPEN(3)						       zziplib Function List						     ZZIP_FOPEN(3)

NAME
zzip_fopen, zzip_freopen - ... SYNOPSIS
#include <zzip/lib.h> ZZIP_FILE * zzip_fopen((zzip_char_t * filename, zzip_char_t * mode)); ZZIP_FILE * zzip_freopen((zzip_char_t * filename, zzip_char_t * mode, ZZIP_FILE * stream)); DESCRIPTION
The zzip_fopen function will fopen(3) a real/zipped file. It has some magic functionality builtin - it will first try to open the given filename as a normal file. If it does not exist, the given path to the filename (if any) is split into its directory-part and the file-part. A ".zip" extension is then added to the directory-part to create the name of a zip-archive. That zip-archive (if it exists) is being searched for the file-part, and if found a zzip-handle is returned. Note that if the file is found in the normal fs-directory the returned structure is mostly empty and the zzip_read call will use the libc read to obtain data. Otherwise a zzip_file_open is performed and any error mapped to errno(3). unlike the posix-wrapper zzip_open the mode-argument is a string which allows for more freedom to support the extra zzip modes called ZZIP_CASEINSENSITIVE and ZZIP_IGNOREPATH. Currently, this zzip_fopen call will convert the following characters in the mode-string into their corrsponding mode-bits: o "r" : O_RDONLY : read-only o "b" : O_BINARY : binary (win32 specific) o "f" : O_NOCTTY : no char device (unix) o "i" : ZZIP_CASELESS : inside zip file o "*" : ZZIP_NOPATHS : inside zip file only all other modes will be ignored for zip-contained entries but they are transferred for compatibility and portability, including these extra sugar bits: o "x" : O_EXCL : fail if file did exist o "s" : O_SYNC : synchronized access o "n" : O_NONBLOCK : nonblocking access o "z#" : compression level : for zlib o "g#" : group access : unix access bits o "u#" : owner access : unix access bits o "o#" : world access : unix access bits ... the access bits are in traditional unix bit format with 7 = read/write/execute, 6 = read/write, 4 = read-only. The default access mode is 0664, and the compression level is ignored since the lib can not yet write zip files, otherwise it would be the initialisation value for the zlib deflateInit where 0 = no-compression, 1 = best-speed, 9 = best-compression. The zzip_fopen function returns a new zzip-handle (use zzip_close to return it). On error the zzip_fopen function will return null setting errno(3). The zzip_freopen function receives an additional argument pointing to a ZZIP_FILE* being already in use. If this extra argument is null then the zzip_freopen function is identical with calling zzip_fopen Per default, the old file stream is closed and only the internal structures associated with it are kept. These internal structures may be reused for the return value, and this is a lot quicker when the filename matches a zipped file that is incidently in the very same zip arch as the old filename wrapped in the stream struct. That's simply because the zip arch's central directory does not need to be read again. As an extension for the zzip_freopen function, if the mode-string contains a "q" then the old stream is not closed but left untouched, instead it is only given as a hint that a new file handle may share/copy the zip arch structures of the old file handle if that is possible, i.e when they are in the same zip arch. The zzip_freopen function returns a new zzip-handle (use zzip_close to return it). On error the zzip_freopen function will return null setting errno(3). AUTHOR
o Guido Draheim <guidod@gmx.de> Tomi Ollila <Tomi.Ollila@iki.fi> COPYRIGHT
Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1.1 SEE ALSO
fopen(2) zziplib 0.13.56 ZZIP_FOPEN(3)
All times are GMT -4. The time now is 12:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy