Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Open .zip file created in UNIX Post 302142041 by porter on Wednesday 24th of October 2007 04:25:00 AM
Old 10-24-2007
(1) did you use "binary" mode when ftp'ing the file?

(2) can winzip decode it?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to FTP all newly created but the current open file?

An application running on HP-UX constantly generates new text log files ( I think using logpipe ). Any new file created requires to be ftp'ed to an offline server, however I want to make sure that the current file being written should not be transferred. For examples consider the following files... (3 Replies)
Discussion started by: indianya
3 Replies

2. Shell Programming and Scripting

Need to find created date of file in UNIX

I need to write a script which has to list all the files which are created before six months from now. kindly help on this ... (7 Replies)
Discussion started by: amirthraj_12
7 Replies

3. UNIX for Advanced & Expert Users

When a file is created where does unix store the info?

When a file is created where does unix store the information about the file? (5 Replies)
Discussion started by: goodmis
5 Replies

4. UNIX for Dummies Questions & Answers

to open .zip file on a server

I want to open a file with .zip format on a remote server. How willi do that thanks (4 Replies)
Discussion started by: supercops
4 Replies

5. Shell Programming and Scripting

unzip .zip file in unix

Hi friends, I have a .zip file which has 6 pdf files. I have ftp'd the .zip file into unix and I am trying to uncompress/unzip the file. Could you please help with the right command. Thanks (7 Replies)
Discussion started by: techmoris
7 Replies

6. UNIX for Dummies Questions & Answers

Reading QNX created FAT ZIP drive in WIndows 7

Hi All, One of our clients has an old QNX server system that writes history backups on ZIP disks. They then wish to take these back up ZIP disks, plug them into a Win7 box with an external ZIP drive and copy them across to an external Hard Drive. The files can be seen on the Win7 box but wont... (3 Replies)
Discussion started by: Beldanan
3 Replies

7. HP-UX

How to find a file created in UNIX every monday.???

Hi All Any one please suggest me... I have one directory every monday one file will be created in that directory. so if the file is created on monday or not i need check first. How can write a script??? if the file is not created i want to quit from script. Thanks K.Srinivas (5 Replies)
Discussion started by: k_s_rao7
5 Replies

8. Shell Programming and Scripting

ZIp UNIX file

Hi Everyone, I'm trying to Zip my files by using below command- zip Monthly_Extract_Trailer.zip Monthly_Extract_Trailer but it is giving me error message as - su: zip: not found. Why it is coming? Please use CODE tags (as required by forum rules) rather than bold text for sample... (6 Replies)
Discussion started by: Amit786
6 Replies

9. UNIX for Beginners Questions & Answers

How can we Zip multiple files created on the same date into one single zip file.?

Hi all i am very new to shell scripting and need some help from you to learn 1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder. 2)Post zipping... (2 Replies)
Discussion started by: b.saipriyanka
2 Replies

10. Shell Programming and Scripting

How can we Zip multiple files created on the same date into one single zip file.?

Hi all i am very new to shell scripting and need some help from you to learn 1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder. 2)Post zipping... (1 Reply)
Discussion started by: b.saipriyanka
1 Replies
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)
All times are GMT -4. The time now is 01:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy