Sponsored Content
Operating Systems AIX How to zip file in AIX with password. Post 302501069 by multidev on Wednesday 2nd of March 2011 11:41:36 AM
Old 03-02-2011
Hi. Skrynesaver,

Thank you very much again.

I've typed as your suggestion.


PHP Code:
wget http://sourceforge.net/projects/infozip/files/unreleased%20Betas/UnZip%20betas/unzip610b.zip/download 
My AIX can not run wget. So I have to manual download file.

PHP Code:
cp unix/Makefile ./


=============


unix/configure
Check C compiler operation
  Ok
Check C compiler type 
(optimization options)
  
Other-unknown C (-O)
Check for the C preprocessor
Check 
if we can use asm code
Check 
for ANSI options
Check 
for prototypes
Check the handling of 
const
Check for time_t
Check 
for size_t
Check 
for off_t
Check 
for Large File Support
  off_t is 8 bytes
   yes we have Large File Support
!
Check for wide char support
   no Unicode support 
wchar_t encoding unspecified
Check 
for setlocale support (needed for UNICODE Native check)
   
have setlocalecan check for charset type
    
enabling UTF8-native support!
Check for gcc no-builtin flag
Check 
for fchmod
Check 
for lchown
Check 
for nl_langinfo
Check 
for lchmod
Check 
for memset
Check 
for errno declaration
Check 
for strerror
Check 
for directory libraries
Check 
for readlink
Check 
for directory include file
Check 
for non existent include files
Check 
for term I/include file
Check 
for MBCS include files
Check 
for MBCS support
   have MBCS support
Check 
for MBCS mbschr
Check 
for MBCS mbsrchr
Check 
for valloc
Check 
for /usr/local/bin and /usr/local/man
Checking 
for OS specialties
Check 
for symbolic links
Check bzip2 support
  Check 
for bzip2 sources in unzip's bzip2 subdirectory
   bzip2 sources not found - no bzip2 support

======================

make aix
ln: 0653-421 ./Makefile exists.
    Specify -f to remove ./Makefile before linking.
#make unzips CF="-O -I. -DUNIX    -DBSD -D_BSD -DUNIX" LF2="-lbsd"
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX unzip.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX crc32.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX crypt.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX envargs.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX explode.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX extract.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX fileio.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX globals.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX inflate.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX list.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX match.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX process.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX ttyio.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX ubz2err.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX unreduce.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX unshrink.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX zipinfo.c
#cc -c -O -I. -DUNIX    -DBSD -D_BSD -DUNIX unix/unix.c
#cc -o unzip  unzip.o crc32.o  crypt.o envargs.o explode.o extract.o fileio.o globals.o inflate.o list.o match.o process.o ttyio.o ubz2err.o unreduce.o unshrink.o zip

==================

make install
#mkdir -p /usr/local/bin
#cp unzip funzip unzipsfx /usr/local/bin 
---------- Post updated at 11:39 AM ---------- Previous update was at 11:37 AM ----------

PHP Code:
man -k zip 
For above statement, no any respond.

Please kindly suggest again. Thank you very much. SmilieSmilieSmilie

---------- Post updated at 11:41 AM ---------- Previous update was at 11:39 AM ----------

How do you unzip without zip available
- Actually, I would like to create zip file with password and then I will send ftp .zip file to other server.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

unzip .zip file and list the files included in the .zip archive

Hello, I am trying to return the name of the resulting file from a .zip archive file using unix unzip command. unzip c07212007.cef7081.zip Archive: c07212007.cef7081.zip SecureZIP for z/OS by PKWARE inflating: CEP/CEM7080/PPVBILL/PASS/G0063V00 I used the following command to unzip in... (5 Replies)
Discussion started by: oracledev
5 Replies

2. UNIX for Dummies Questions & Answers

Syntaxt to zip a file with password protection

Hi Experts, I am an SAP ABAP developer and compleatly stranger to unix and I need a help to extend a small peice of code. Our requirement is to zip a file with password protection in a specified directory. Following is the code I am using to zip a file ZZZZ.TXT. Here YYYY = is the path... (3 Replies)
Discussion started by: veeru4all
3 Replies

3. UNIX for Dummies Questions & Answers

Zip file with password protection

I am trying to zip a file with password protection. I have read all or atleast most of the threads on the website, but couldn't come up with a solution. I am running ZIP version 2.3 on HP-UX but I dont see the -P (password) option. I read somewhere that free versions of zip don't come with... (5 Replies)
Discussion started by: pintu
5 Replies

4. Shell Programming and Scripting

Password protect a zip file

Hi, I'm working on Solaris 9 and i need to unzip a password protected zip, which i can do using zip -Ppassword filename however when i have done what i need to do with the file is to zip the file back up with a password. Zip on my system is version 2.3 and does not support this? How can... (0 Replies)
Discussion started by: Pablo_beezo
0 Replies

5. UNIX for Dummies Questions & Answers

password protect a CSV file: better solution than ZIP password?

Hi We send *.csv with sensitive data to our customers. Our customers open those files with Excel. A new requirement is that we password protect those CSV files. I thought to pack them with ZIP and assign a password to the archive. But Solaris 10 can't encrypt ZIP files. $ zip -P... (12 Replies)
Discussion started by: slashdotweenie
12 Replies

6. Shell Programming and Scripting

Zip with Password

Hi, In my shell script I am using the zip command to zip the log files. The zip file is password protected. But there is a dicey. I want the output as: 1) All files should be zipped including sub-directories' files 2) All files (individually) should be Password protected (may be common or... (4 Replies)
Discussion started by: MKR
4 Replies

7. Shell Programming and Scripting

Zip Multiple files to One .zip file in AIX system

Hi I have a requirement in unix shell where I need to zip multiple files on server to one single .zip file. I dont see zip command in AIX and gzip command not doing completely what I want. One I do .zip file, I should be able to unzip in my local Computer. Here is example what I want... (9 Replies)
Discussion started by: RAMA PULI
9 Replies

8. UNIX for Dummies Questions & Answers

Zip a file with password

Hi, newbie to Linux, is there another way to zip a file with a password other than using 'zip' command? (7 Replies)
Discussion started by: mined
7 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
All times are GMT -4. The time now is 03:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy