gpg: gpg-agent
Werner Koch
wk at gnupg.org
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
else
eval `gpg-agent --daemon`
echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info
fi
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
shells.
Werner
--
Werner Koch <wk at gnupg.org>
The GnuPG Experts http://g10code.com
Free Software Foundation Europe http://fsfeurope.org
More information about the Gnupg-users
mailing list