From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp: how to set path to remote shell? Date: Sun, 13 Mar 2011 09:52:31 +0100 Message-ID: <87aagz1jxs.fsf@gmx.de> References: <8315aace-c2c4-4efb-9d3a-a916b13071f2@d26g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300006410 18349 80.91.229.12 (13 Mar 2011 08:53:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2011 08:53:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ethan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 13 09:53:25 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pyh3F-0003mx-NB for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Mar 2011 09:53:25 +0100 Original-Received: from localhost ([127.0.0.1]:60559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyh3F-0001Fo-Bm for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Mar 2011 04:53:25 -0400 Original-Received: from [140.186.70.92] (port=42398 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyh2W-0001FM-Le for help-gnu-emacs@gnu.org; Sun, 13 Mar 2011 04:52:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pyh2T-0000Gx-QR for help-gnu-emacs@gnu.org; Sun, 13 Mar 2011 04:52:40 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:46979) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Pyh2S-0000Ft-VA for help-gnu-emacs@gnu.org; Sun, 13 Mar 2011 04:52:37 -0400 Original-Received: (qmail invoked by alias); 13 Mar 2011 08:52:33 -0000 Original-Received: from p57BB9CC3.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.156.195] by mail.gmx.net (mp060) with SMTP; 13 Mar 2011 09:52:33 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19hwQJ3pEBhuZ8mS3B2quKRpTq/VZq4d7lQOmf8hm dciCQLEhdaUreR In-Reply-To: <8315aace-c2c4-4efb-9d3a-a916b13071f2@d26g2000prn.googlegroups.com> (Ethan's message of "Sat, 12 Mar 2011 12:37:00 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80056 Archived-At: Ethan 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.