From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NqvPI-0002U6-5n for garchives@archives.gentoo.org; Sun, 14 Mar 2010 21:31:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A858E080B; Sun, 14 Mar 2010 21:30:11 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 379D5E080B for ; Sun, 14 Mar 2010 21:30:11 +0000 (UTC) Received: from digimed.co.uk (grunthos.digimed.co.uk [192.168.1.4]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.digimed.co.uk (Postfix) with ESMTPSA id 57CF04C84A8 for ; Sun, 14 Mar 2010 21:30:10 +0000 (GMT) Date: Sun, 14 Mar 2010 21:30:03 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Starting up gpg-agent script Message-ID: <20100314213003.2c41cdc1@digimed.co.uk> In-Reply-To: <201003142023.41392.michaelkintzios@gmail.com> References: <201003142023.41392.michaelkintzios@gmail.com> Organization: Digital Media Production X-Mailer: Claws Mail 3.7.5cvs33 (GTK+ 2.18.7; i686-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/JjmzQc.OuqgUqeM2/Bc9WM0"; protocol="application/pgp-signature" X-Archives-Salt: fff288c6-ae42-45a6-80e3-635c095597c7 X-Archives-Hash: 57e5d239afe36d45f99f26e98a520473 --Sig_/JjmzQc.OuqgUqeM2/Bc9WM0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 14 Mar 2010 20:23:40 +0000, Mick wrote: > I am trying this script in /etc/env.d/90gpg-agent: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > if test -f $HOME/.gpg-agent-info && kill -0 `cut -d: -f 2=20 > $HOME/.gpg-agent-info` 2>/dev/null; then > GPG_AGENT_INFO=3D`cat $HOME/.gpg-agent-info` > export GPG_AGENT_INFO > else > eval `/usr/bin/gpg-agent --daemon` > echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info > fi > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D >=20 > But when I emerged kgpg I got this error: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > !!! 'ParseError: Invalid token 'test' (not '=3D'):=20 > /etc/env.d/90gpg-agent: line 1 in /etc/env.d/90gpg-agent' > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D >=20 > Can you please help me correct the above script, I'm not sure=20 > what's wrong with it. env-update doesn't evaluate scripts. It expects only variable assignments. You mention kgpg, are you using KDE? If so, it takes care of this automatically, you only need to uncomment the relevant lines in the agent startup and shutdown scripts in /etc/kde. Otherwise, put the script in a file in /etc/profile.d. --=20 Neil Bothwick Top Oxymorons Number 17: Clearly misunderstood --Sig_/JjmzQc.OuqgUqeM2/Bc9WM0 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEARECAAYFAkudVWAACgkQum4al0N1GQNAfQCcD+HGRUvLqXR9apj2zHkkJe/I 0eAAn1lezdU0p0tdtWQGMMTYl8rhcFYb =BdzI -----END PGP SIGNATURE----- --Sig_/JjmzQc.OuqgUqeM2/Bc9WM0--