On 12/02/2011 04:41 AM, Andreas Petzold wrote:
Hi,On Friday, December 02, 2011 03:52:42 Todd And Margo Chester wrote:Hi All, I can run the following from the command prompt without problem: /usr/bin/gpg -z 0 --output /mnt/ShinyStick \ /2011-11-29_OurStuffDump.gz.gpg \ -c /lin-bak/2011-11-29_OurStuffDump.gz But, when I run it from a batch script. I do not get the graphical pop up asking for my passphrase. Instead I get: (pinentry-gtk-2:25253): Gtk-WARNING **: cannot open display: :0.0 gpg-agent[25252]: can't connect server: ec=4.16383 gpg-agent[25252]: can't connect to the PIN entry module: End of file gpg-agent[25252]: command get_passphrase failed: No pinentry gpg: problem with the agent: No pinentry gpg: error creating passphrase: Operation cancelled gpg: symmetric encryption of `/lin-bak/2011-11-29_OurStuffDump.gz' failed: Operation cancelled I have tried DISPLAY three ways: export DISPLAY=:0.0 export DISPLAY=127.0.0.1:0.0 and no export What am I doing wrong?sounds similar but not quite identical to https://bugzilla.redhat.com/show_bug.cgi?id=548528 https://bugzilla.redhat.com/show_bug.cgi?id=622539 Can you try the suggested workaround, i.e. add "keep-display" to gpg-agent.conf? Cheers, Andreas
I have no gpg-agent.conf. Tried putting it in gpg.conf, and gpg coughed on it. What I really need is some way to force gpg to prompt for the passphrase from the command line.
