LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to pass password to bash prompt in script? (https://www.linuxquestions.org/questions/linux-software-2/how-to-pass-password-to-bash-prompt-in-script-4175604738/)

shams 04-27-2017 12:58 AM

how to pass password to bash prompt in script?
 
Hi,
This is a bash script, encfs mount the encrypted dir and asking for the password i created this script to pass the password to the prompt, but it is not working and still asking for the password:
Code:

echo "pass_here" | encfs ~/.crypt ~/dcrypt
I also tried the
Code:

echo -e "pass_here"
This is my home pc and no secrtiy risk is there.

ondoho 04-27-2017 01:12 AM

does encfs support password input in this way?
maybe 'man encfs' can give answers.


All times are GMT -5. The time now is 12:09 AM.