gpg-agent question

Jon Amundsen jamundsen@jamundsen.dyndns.org
Thu Sep 25 22:14:02 2003


--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi All!

I've been trying to setup gpg-agent and have run into a little trouble.  I'=
m using pinentry-curses, and finally figured out that I needed to set GPG_T=
TY inorder to get it working correctly.  The question I have is now that I =
have an agent running and I have entered my passphrase can I run it from a =
script without a tty?  2 examples of this would be in a cron job or using p=
rocmail to auto verify/decrypt an incoming email(which I'm trying to do).  =
The script I have works if I cat a message to it from the command line, but=
 when invoked from procmail the log from the perlscript has the following i=
n it:

<snip>
[GNUPG:] ENC_TO FEB62F90D5975682 16 0
[GNUPG:] USERID_HINT FEB62F90D5975682 Jon Amundsen (Personal Key) <jamundse=
n@jam
undsen.dyndns.org>
[GNUPG:] NEED_PASSPHRASE FEB62F90D5975682 B7D2DD84871BC2DC 16 0
</snip>

My guess is that it's not talking to the gpg-agent properly.  I have the GP=
G_AGENT_INFO set properly in the .procmailrc, but I don't know what to set =
gpg_tty to?

If anyone has any suggestions I'd really appreciate it!

Thanks,

--=20
Jon Amundsen
jamundsen@jamundsen.dyndns.org

--x+6KMIRAuhnl3hBn
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/c0z8t9LdhIcbwtwRAilZAJ94pnbN9FsNO14OCxJV7ZthD/Dy0ACfSHQE
Ohpl26h1OjtPxKMFx+SvE4g=
=7ymo
-----END PGP SIGNATURE-----

--x+6KMIRAuhnl3hBn--