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
Solved. In my script, I had to add "xhost +" before calling gpg http://scientificlinuxforum.org/index.php?showtopic=1231&st=0&#entry8971
