gpg: gpg-agent

Werner Koch wk at
Mon Nov 3 12:49:19 CET 2003

On 01 Nov 2003 13:02:12 -0800, Carl William Spitzer IV said:

> I tried executing gpg-agent --daemon and the problem persists.

You did executed the commands gpg-agent --daemon printed?  Using

 eval $(gpg-agent --daemon)

will do the job in one step.

 if test -f $HOME/.gpg-agent-info && \
   kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then
     GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info`
     export GPG_AGENT_INFO   
     eval `gpg-agent --daemon`
     echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info

is also a useful snippet for the login profile to start the agent and
to make sure that the socket information are set for all further


Werner Koch                                      <wk at>
The GnuPG Experts                      
Free Software Foundation Europe	       

More information about the Gnupg-users mailing list