LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GPG and redirected input (https://www.linuxquestions.org/questions/linux-software-2/gpg-and-redirected-input-318854/)

Vookimedlo 04-30-2005 04:20 PM

GPG and redirected input
 
Hi,

I'd like to redirect input of GPG utility, so I can automatize some actions.

This is the base:
Code:

gpg -q --cipher-algo AES256 --decrypt key.gpg

I tried this:
Code:

echo $MY_PHRASE | gpg ...
gpg .... <my_phrase

but nothing of that doesn't work.

Thanks in advance.

Vookimedlo 04-30-2005 04:32 PM

just found the solution

--passphrase-fd 0

do that job


All times are GMT -5. The time now is 08:59 AM.