password protect a zip file in unix and mail it using unix script.


Recommended Posts

I need to password protect a zip file in unix and mail it using unix script.

i have tried using zip -P but it gave me the eroor that encryption was not supported.

The requirement is to provide the password in command line so that the script can zip the file using the password and send it on a particular mail on daily basis.

Please help in this regard.

i tried the gpg option, however i could not find an option to specify the password in the command line(like -p for zip command) .. this is required because the command will be a part of the script that would be run on daily basis to zip a file and password protect it and finally mail it

This topic is now closed to further replies.