From: Abutalib Aghayev <agayev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Accessing emacsclient environment variables.
Date: Sun, 06 Jul 2014 14:39:36 -0400 [thread overview]
Message-ID: <874myu9trk.fsf@gmail.com> (raw)
Hi all,
On machine "foo", I start emacs as a server using "emacs --daemon" and
on machine "bar" I do remote editing by running "ssh -A foo emacsclient
-c". The -A switch is to enable SSH Agent Forwarding.
Now, when I run shell in emacsclient (M-x shell), the shell does not
have SSH_AUTH_SOCKET properly set, which is normal, since emacs server
was started locally and M-x shell uses server's environment to launch a
shell.
However, emacsclient has the correct SSH_AUTH_SOCKET value in its
environment -- I can verify that by running "cat
/proc/pid-of-emacs-client/environ".
Is there a way of accessing emacsclient's environment variable or at
least its process id, so that I could set SSH_AUTH_SOCKET before
launching shell? Better yet, is there a simpler way to solve this
problem?
Thanks.
next reply other threads:[~2014-07-06 18:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-06 18:39 Abutalib Aghayev [this message]
2014-07-06 23:21 ` Accessing emacsclient environment variables Suvayu Ali
2014-07-07 23:19 ` Abutalib Aghayev
2014-07-08 12:31 ` Stefan Monnier
2014-07-07 1:01 ` Stefan Monnier
2014-07-07 23:19 ` Abutalib Aghayev
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=874myu9trk.fsf@gmail.com \
--to=agayev@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.