all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Eval environment variables using Lisp code
@ 2006-04-19 10:12 Ismael Valladolid Torres
  0 siblings, 0 replies; 2+ messages in thread
From: Ismael Valladolid Torres @ 2006-04-19 10:12 UTC (permalink / raw)


In my setup, I run ssh-agent making it create a script that can be
sourced from any shell giving it access to the agent:

$ ssh-agent -a /tmp/.ssh-socket >/tmp/.ssh-script
$ cat /tmp/.ssh-script
SSH_AUTH_SOCK=/tmp/.ssh-socket; export SSH_AUTH_SOCK;
SSH_AGENT_PID=148; export SSH_AGENT_PID;
echo Agent pid 148;

To be able to use Tramp, I'd need emacs to eval that shell code so
environment variables are properly defined. Can this be done via Lisp
code in my .emacs?

This is NT Emacs and ssh is the Cygwin version. So running ssh-agent
via the window manager is not an option, and making ssh not use the
agent and ask for a password instead isn't, either. If I eval that
code on a Bash shell and run emacs from it, it works, but I'd like it
to work when using the Emacs icon.

Thanks in advance for any idea.

Cordially, Ismael
-- 
 Ismael Valladolid Torres       OpenPGP key ID: 0xDE721AF4
  [^[$B$?$S$?$S$9$_$^$;$s^[(B]       Jabber ID: ivalladt@jabberes.org

  http://lamediahostia.blogspot.com  =?iso-2022-jp?B?GyJE0hREjAGyhC?=

^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <mailman.562.1145441543.9609.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2006-04-19 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 10:12 Eval environment variables using Lisp code Ismael Valladolid Torres
     [not found] <mailman.562.1145441543.9609.help-gnu-emacs@gnu.org>
2006-04-19 11:10 ` Phillip Lord

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.