Your problem was that you did not specify a zip file.
$ zip -P mypwd hr.zip hr.dmp adding: hr.dmp (deflated 79%) $ unzip hr.zip Archive: hr.zip [hr.zip] hr.dmp password: ^C $ unzip -P mypwd hr.zip Archive: hr.zip inflating: hr.dmp
965652 wrote:I must be missing something! The whole point of using zip -e is to get a prompt. The whole point of using the insecure zip -P is to not get a prompt. If you want a prompt use zip -e. If you don't want a prompt the use zip - P !
Nope. If I am using zip -e its prompt for the password. Whereas for zip -P we should mention the password in command itslef. So If i am gonna user zip -e in the script, how I can avoid the password prompting ?