Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

password from stdin

Help
wnefal
2013-01-28
2013-05-28
  • wnefal
    wnefal
    2013-01-28

    Hi, I use 7za in a shell script and I want to hide it from the processlist.
    I tried

    $ 7za x bla.zip <<HERE
    password
    HERE
    

    but it seems that the password does not arrive.

    Similarly

    $ echo "password" | 7za x bla.zip
    

    does not work.

    Why is this?
    How can I achieve what I want to do?

     
  • wnefal
    wnefal
    2013-01-29

    To clarify, I want the password not to show up in the processlist which is the case if I give a -ppassword option