05-14-2018
Welcome to the forum.
Please post in an adequate forum, and use code tags. Show your attempts / ideas / thoughts on a solution.
There don't seem to be access / permission problems as your manual zipping works.
What is your shell (version)? Depending on it the file selection can be reliably simpified, or not.
One more comment: your command syntax seems questionalble: zip needs the archive name first, and then the file names to be combined into the archive. The .gz ending usually identifies gziped data, not zipped ones.
10 More Discussions You Might Find Interesting
1. AIX
Hi,
Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies
2. Shell Programming and Scripting
Hi,
I am porting one shell script from Linux to AIX. I had .ksh file and i have changed it to .sh file for aix. on linux this script is running fine but on aix it gives me "unexpected end of file" error.
Could any one suggest me what to do to port this script error free?
Thanks in... (6 Replies)
Discussion started by: joy_1
6 Replies
3. AIX
I have av script that loops through some statistic files to create a report. We would like to only loop through non-empty files as these files create an empty report-line.
I have figured out how to find the non-empty files, but not how to loop through only those files.
Here is the code that finds... (4 Replies)
Discussion started by: Tessa
4 Replies
4. Shell Programming and Scripting
Hi!
I have made a simple script for writing the following line on a file (file.txt):
list= 1 2 3
and thr script looks like this:
N=3
ll=(1 2 3)
echo -n "list= ">> file.txt
j=0
while ; do
echo -n ${ll}" ">> file.txt
let j++
done
The code works fine on Linux,... (3 Replies)
Discussion started by: carl.alv
3 Replies
5. AIX
Hi,
When I run the following script from a shell it works fine as root. But when I try to run from cron as root it fails everytime? I set the scripts I run in cron to send me the output if they fail but this produces nothing. Please see script below, maybe someone can see whats wrong as I'm... (3 Replies)
Discussion started by: elmesy
3 Replies
6. AIX
Hi.
I created schell script for sending messages to some processes in AIX:
#!/bin/sh
BSE=/infor/ERPLN/bse
BSE_TMP=/infor/ERPLN/bse/tmp
export BSE BSE_TMP
for i in `ps -eo pid,comm | grep bshell | cut -f 1 -d " "`
do
/something $i
done
Unfortunatelly this script does not work on... (6 Replies)
Discussion started by: giovanni
6 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
Good Morning every one !!!
I am very new to this forum and new to Shell Script as well , hope some script Guru's will help me .
I have a requirment to write a shell script . The requirment is like this . There are couple of shell scripts scheduled in the Crontab (some scripts run... (5 Replies)
Discussion started by: dilipd21
5 Replies
8. Shell Programming and Scripting
Hi All,
I am connecting from ServerA(Unix) to ServerB (AIX). Copying a Database dump file from A to B. On B i need to import that dump file.
I have used the following code to do this operation but ended up with error
Pseudo-terminal will not be allocated because stdin is not a terminal.... (2 Replies)
Discussion started by: maddyd2k
2 Replies
9. Shell Programming and Scripting
Please help me in putting a trace on shell script running in AIX
Best regards,
Vishal (3 Replies)
Discussion started by: Vishal_dba
3 Replies
10. Shell Programming and Scripting
Hi All,
I want to schedule a shell script on AIX.
But Crontab is not working in my AIX Server.Is there any alternative?
Please Suggest.. (2 Replies)
Discussion started by: bharat1211
2 Replies
LEARN ABOUT DEBIAN
zip_get_file_comment
ZIP_GET_FILE_COMMENT(3) Library Functions Manual ZIP_GET_FILE_COMMENT(3)
NAME
zip_get_file_comment - get comment for file in zip
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
const char * zip_get_file_comment(struct zip *archive, zip_uint64_t index, int *lenp, int flags);
DESCRIPTION
The zip_get_file_comment function returns the comment for the file at position index in the zip archive. This pointer should not be modi-
fied or free(3) Ap d. If lenp is not NULL, the integer to which it points will be set to the length of the comment. If flags is set to
ZIP_FL_UNCHANGED, the original unchanged comment is returned.
RETURN VALUES
Upon successful completion, a pointer to the comment is returned, or NULL if there is no comment. In case of an error, NULL is returned
and the error code in archive is set to indicate the error.
ERRORS
zip_get_file_comment fails if:
[ZIP_ER_INVAL]
index is not a valid file index in archive.
SEE ALSO
libzip(3), zip_get_archive_comment(3)
AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH March 10, 2009 ZIP_GET_FILE_COMMENT(3)