Release: 1.2.1
Environment
sun solaris 2.6
Description
I am trying to run gpg using the -- batch option to decrypt a file. The README files describes how to do this when you have a pass phrase. I think I have this set up so I can run it from a unix script but it fails with the secure memory error message. My script points a file descriptor to the file that contains the passphrase. The gpg command includes the --batch option and the --passphrase-fd parameter.
exec 3< ghmf.txt
gpg --passphrase-fd 3 --batch --decrypt-files /NT2/private/sae_200306061220.pgp
Am I doing something wrong or is something broken?
Thanks for any help.
Fix
The files was not long but the shell seemd not to send an eof to fd 3. The suggested method worked.