I am trying to upload .zip files to Unix server and get the error 553 qmerev2002.zip: Permission denied, what is my problem?? I am able to load other files and folders fine. (3 Replies)
Hi guys:
I need to grab a particular file(s) from a directory.
the file name is abc.xyz.2006020101200
I need to grab it based on the bold numbers. The bolded numbers are the date and such files are created everyday.
My initial script was to grab the listing of that directory and then cut... (1 Reply)
Hi,
Is there a way to grab the username who is running the shell script. I am trying to do is:
$ who am i
Peterd123 pts/5 Mar 20 09:30 (H0021563.xyz.com)
Is there a way to display only the user name above, which is"Peterd123".
Thanks
Raj (3 Replies)
I have more than 500 gzipped files in a directory. I have one lookup file in the same directory with 200 key values. I need to get the name of the gzipped file which have any of these 200 key values. Here my criteria is do not unzip the files due to space constraint. Any suggestion? (3 Replies)
Hi All,
I need to check the logs and grep it. The problem is that the previous days are zipped with *.gz. How do grep on the *.gz?
Thank you in advance. (1 Reply)
Hi,
I have below two zipped files -
file1.gz
023384148,1,,,02077301961,R,02077301961,N,0,02077301961,N,0,0,8010,02077300518,U,N,,02077300518,U,20100501011732,20100501011732,0,20100501011815,00000430,16,16,10,N;... (8 Replies)
Hi everyone,
when I try to copy *.gz files run cp within the correct source folder it works as follow:
Source folder = C:/Documents and Settings/user/Recent papers/2771/
Destination folder = C:/Documents and Settings/user/My documents/1532/temp
cp *.gz "C:/Documents and Settings/user/My... (2 Replies)
I need to be able to identify files with file timestamps greater than a given timestamp.
I am using the following solution, although it appears to compare files at the "seconds" granularity and I need it at the milliseconds. When I tested my solution, it missed files that had timestamps... (3 Replies)
Hi,
To all the Unix gurus this should be a simple task, but as a newbie I'm finding it hard to crack this. Any help is highly appreciated...
Scenario:
Step 1 : Move zip file from FTP folder to WORK folder
Step 2:
Unzip the file "Sample_YYYYMMDDHHMMSS.tar.gz" which contains many file... (10 Replies)
Hello dear members,
I have one general and one specific question which I will be very grateful if you could help me with them. Let's start with my general question:
1. I am working on cluster computer shared with other people and I need to manipulate a big zipped text file of 13 GB. There is... (1 Reply)
Discussion started by: Homa
1 Replies
LEARN ABOUT CENTOS
zip_source_zip
ZIP_SOURCE_ZIP(3) Library Functions Manual ZIP_SOURCE_ZIP(3)NAME
zip_source_zip - create data source from zip file
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
struct zip_source * zip_source_zip(struct zip *archive, struct zip *srcarchive); "zip_uint64_t srcidx" "int flags" "zip_uint64_t start"
"zip_int64_t len"
DESCRIPTION
The function zip_source_zip creates a zip source from a file in a zip archive. The srcarchive argument is the (open) zip archive contain-
ing the source zip file at index srcidx. len bytes from offset start will be used in the zip_source. If len is 0 or -1, the rest of the
file, starting from start, is used. If start is zero and len is -1, the whole file will be copied without decompressing it.
Supported flags are:
ZIP_FL_UNCHANGED Try to get the original data without any changes that may have been made to srcarchive after opening it.
ZIP_FL_RECOMPRESS When adding the data from srcarchive, re-compress it using the current settings instead of copying the com-
pressed data.
RETURN VALUES
Upon successful completion, the created source is returned. Otherwise, NULL is returned and the error code in archive is set to indicate
the error.
ERRORS
zip_source_zip fails if:
[ZIP_ER_CHANGED]
Unchanged data was requested, but it is not available.
[ZIP_ER_INVAL]
srcarchive, srcidx, start, or len are invalid.
[ZIP_ER_MEMORY]
Required memory could not be allocated.
Additionally, it can return all error codes from zip_stat_index and zip_fopen_index.
SEE ALSO libzip(3), zip_add(3), zip_replace(3), zip_source_buffer(3), zip_source_file(3), zip_source_filep(3), zip_source_free(3), zip_source_func-
tion(3)AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH June 4, 2008 ZIP_SOURCE_ZIP(3)