10-01-2015
Quote:
Could you post the real full path file that you say it doesn't zip? Perhaps, copy and paste the result of ls -l </path/to/filename.dat>
---------- Post updated at 12:01 PM ---------- Previous update was at 11:39 AM ----------
If this were the case, you would be getting an error condition E2BIG, and the OP says that not errors occur.
-rw-r--r-- 1 Oabx xys 2946577586 Oct 1 05:31 f1.txt
There are 7 files to zip one is missing and rest 6 are zipping.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi, I am trying to unzip a file that I unmounted onto a unix machine from a cd I had burned in a Windows machine. The file I am trying to unzip is a .tar file... it was originally a .tar.gz file because it was zipped using gzip. I have tried:
% gzip -d hpux.tar (where hpux.tar is the file... (2 Replies)
Discussion started by: nattie_h
2 Replies
2. UNIX for Dummies Questions & Answers
Gurus,
My own stupidity (or ignorance...or both) put me in the situation I am in and I need help please:
1-My shell account (OS: HP UX v11) contains several work directories (/docs, /scripts...)
2-Our sysadmin has implemented aggressive disk quotas so I have to compress the files I put here... (2 Replies)
Discussion started by: alan
2 Replies
3. SCO
ciao a tutti,
premesso che sono un principiante di unix, avrei bisogno di gzip/gunzip e SOPRATTUTTO delle istruzioni (ahimè dettagliatissime, come per un bimbo!) per installarlo...
grazie mille,
ciao (1 Reply)
Discussion started by: mfran2002
1 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I have some files which are 01.tar.gz, 02.tar.gz,03.tar.gz ........30.tar.gz.
when I want to extract the files I 'm using this command "gzip -dc *.tar.gz | tar -xvf -" but it just uncompress 01.tar.gz
how can I uncompress all of them ?
thanx
alice (2 Replies)
Discussion started by: alisevA3
2 Replies
5. Shell Programming and Scripting
Hi Experts!!
I was creating a zip file in a server which had zip installed in it. I have another server in which zip is not there and i am instructed to make use of gzip to compress files. I would need your help to know the way to create a gzip file.
1) I do the following to create the zip... (5 Replies)
Discussion started by: ganga.dharan
5 Replies
6. Shell Programming and Scripting
Hi,
I want to gzip files in loop.
for i in `ls *.xml`;
do
gzip $i;
done
But i am gettin error like "/usr/bin/ls: Arg list too long"
Also please tell me how to do it with while loop and also using find and then exec. (7 Replies)
Discussion started by: tushar_tus
7 Replies
7. UNIX for Advanced & Expert Users
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
8. Shell Programming and Scripting
Hi Gurus,
I have a requirement to zip a file using gzip and ftp it to target server.
I am using a gzip script as below.
gzip.sh
#!/bin/ksh
/usr/bin/gzip -9 $1
Filename for gzip.sh is passed by an application program.
so the output for ./gzip.sh Test_YYYYMMDDHHMMSS.txt (file name is... (1 Reply)
Discussion started by: PRVARMA
1 Replies
9. Shell Programming and Scripting
how to zip all log file in a folder expect the latest
gzip * ---> will zip all log files but I don't want the latest file to be zipped
ex: file1, file2, file3, file4, file5
any single command to gzip all files excpet file5 ? (2 Replies)
Discussion started by: rmann
2 Replies
10. Shell Programming and Scripting
if ;then
echo "mrnet greater 5000"
gzip /var/log/mrnet.log /var/log/mrnet.log.1.gz
fi
i'm looking if mrnet.log is bigger then 5000
then compress mrnet.log to mrnet.log.1.gz but it won't compress. (3 Replies)
Discussion started by: Froob
3 Replies
LEARN ABOUT CENTOS
zip_open
ZIP_OPEN(3) Library Functions Manual ZIP_OPEN(3)
NAME
zip_open - open zip archive
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
struct zip * zip_open(const char *path, int flags, int *errorp);
DESCRIPTION
The zip archive specified by path is opened and a pointer to a
struct zip, used to manipulate the archive, is returned. The are specified by or'ing the following values, or 0 for none of them.
ZIP_CREATE Create the archive if it does not exist.
ZIP_EXCL Error if archive already exists.
ZIP_CHECKCONS Perform additional consistency checks on the archive, and error if they fail.
If an error occurs and errorp is non-NULL, it will be set to the corresponding error code.
RETURN VALUES
Upon successful completion zip_open returns a
struct zip pointer. Otherwise, NULL is returned and *errorp is set to indicate the error.
ERRORS
The archive specified by path is opened unless:
[ZIP_ER_EXISTS]
The file specified by path exists and ZIP_EXCL is set.
[ZIP_ER_INCONS]
Inconsistencies were found in the file specified by path and ZIP_CHECKCONS was specified.
[ZIP_ER_INVAL]
The path argument is NULL.
[ZIP_ER_MEMORY]
Required memory could not be allocated.
[ZIP_ER_NOENT]
The file specified by path does not exist and ZIP_CREATE is not set.
[ZIP_ER_NOZIP]
The file specified by path is not a zip archive.
[ZIP_ER_OPEN]
The file specified by path could not be opened.
[ZIP_ER_READ]
A read error occurred; see for details.
[ZIP_ER_SEEK]
The file specified by path does not allow seeks.
SEE ALSO
libzip(3), zip_close(3), zip_error_to_str(3), zip_fdopen(3)
AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH February 15, 2009 ZIP_OPEN(3)