[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp: how to set path to remote shell?
From: |
Michael Albinus |
Subject: |
Re: Tramp: how to set path to remote shell? |
Date: |
Sun, 13 Mar 2011 09:52:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
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.