> I started down that path this morning, however I can't seem to figure
> out how to automate passing the password to gpg. I figured I'd use
> expect, but gpg *always* uses pinentry, so I loose the ability to use
> stdin/stdout to communicate the password with gpg.

You might be able to use gpg-agent with the gpg-preset-passphrase
utility