|
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 where the file is stored.
ZZZZ is the name of the file.
cd /YYYY;zip -r ZZZZ.zip ZZZZ.TXT
Please let me know the syntax to create the zip file with password protection. I saw some where that we can use "-P password" to make the zipfile password protected, but I am not sure where/how exactly it can be used within the above syntax. Although -P is not safe, it is OK with us, as we are triggering this command from SAP.
This is quite urgent for us.
Thanks in advance.
Veerendranath Maddula.
|