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:
Todd And Margo Chester <[log in to unmask]>
Reply To:
Todd And Margo Chester <[log in to unmask]>
Date:
Thu, 1 Dec 2011 18:52:42 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
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?

Many thanks,
-T

(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

ATOM RSS1 RSS2