all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ismael Valladolid Torres <ivalladolidt@terra.es>
Subject: Eval environment variables using Lisp code
Date: Wed, 19 Apr 2006 12:12:16 +0200	[thread overview]
Message-ID: <20060419101216.GA552@spma33> (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?=

             reply	other threads:[~2006-04-19 10:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-19 10:12 Ismael Valladolid Torres [this message]
     [not found] <mailman.562.1145441543.9609.help-gnu-emacs@gnu.org>
2006-04-19 11:10 ` Eval environment variables using Lisp code Phillip Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060419101216.GA552@spma33 \
    --to=ivalladolidt@terra.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.