> You could try: > gpg --passphrase-fd 3 ...more-options... 3<somefile
> where somefile is a file containing the passphrase, or a fifo with a > coprocess writing the passphrase to it... That did not seem to work. But after searching for gpg --passphrase-fd, I found the following command that works: /usr/bin/gpg --pinentry-mode=loopback --passphrase "SOMEPASSWORD" --homedir /opt/.gnupg/ --export-secret-key -a "SOMEKEYID" > /opt /tmp/private.key _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users