From: Michael Albinus <michael.albinus@gmx.de>
To: Ethan <ethandbrown@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Tramp: how to set path to remote shell?
Date: Sun, 13 Mar 2011 09:52:31 +0100 [thread overview]
Message-ID: <87aagz1jxs.fsf@gmx.de> (raw)
In-Reply-To: <8315aace-c2c4-4efb-9d3a-a916b13071f2@d26g2000prn.googlegroups.com> (Ethan's message of "Sat, 12 Mar 2011 12:37:00 -0800 (PST)")
Ethan <ethandbrown@gmail.com> writes:
Hi,
> The path to my shell on my local machine is /bin/bash. When
> attempting to bring up a shell on the remote machine I get the error:
>
> exec: /bin/bash: not found
>
> Process shell<2> exited abnormally with code 127
>
> It seems that tramp is using the path from my local machine as the
> path on the remote machine. The actual remote machine path for bash
> is /usr/local/bin/bash. Does anyone know which variable to set so
> that tramp uses the correct path to bash on the remote machine? I
> did RTFM, but didn't find it.
I suspect you have applied "M-x shell", haven't you? In this case,
`shell-file-name' (your local login shell) is used for opening the
shell. You can overwrite this by either setting environment variable
$ESHELL, or by setting `explicit-shell-file-name'.
> Thanks.
Best regards, Michael.
next prev parent reply other threads:[~2011-03-13 8:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-12 20:37 Tramp: how to set path to remote shell? Ethan
2011-03-13 8:52 ` Michael Albinus [this message]
2011-03-13 20:29 ` Ethan Brown
2011-03-14 9:59 ` Michael Albinus
2011-03-14 14:24 ` Ethan Brown
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=87aagz1jxs.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=ethandbrown@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.