SCIENTIFIC-LINUX-USERS Archives

December 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Andreas Petzold <[log in to unmask]>
Reply To:
Andreas Petzold <[log in to unmask]>
Date:
Fri, 2 Dec 2011 13:41:14 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
	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

ATOM RSS1 RSS2