From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: Q on using shell mode remotely Date: Fri, 28 Jul 2006 14:33:13 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154122423 5985 80.91.229.2 (28 Jul 2006 21:33:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2006 21:33:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 28 23:33:41 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6Zxd-0007MV-Mm for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jul 2006 23:33:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6Zxd-0006Aq-6A for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jul 2006 17:33:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6ZxQ-00069Q-BD for help-gnu-emacs@gnu.org; Fri, 28 Jul 2006 17:33:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6ZxP-00069E-TM for help-gnu-emacs@gnu.org; Fri, 28 Jul 2006 17:33:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6ZxP-000697-Lo for help-gnu-emacs@gnu.org; Fri, 28 Jul 2006 17:33:19 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1G6ZzT-0005uz-Vo for help-gnu-emacs@gnu.org; Fri, 28 Jul 2006 17:35:28 -0400 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k6S3WVmb007335 for ; Fri, 28 Jul 2006 15:33:17 -0600 Original-Received: from dhcp-amer-csvpn-gw1-141-144-64-116.vpn.oracle.com by rcsmt250.oracle.com with ESMTP id 1667579921154122397; Fri, 28 Jul 2006 15:33:17 -0600 Original-To: "Help-Gnu-Emacs" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Whitelist: TRUE 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:36349 Archived-At: My question is: can you use shell mode remotely? I use ftp through Emacs (ange ftp or tramp with tramp-default-method = ftp) to access files on a remote box. I have Emacs running on Windows, and the remote box is GNU/Linux. In general, I haven't been using shell-mode, locally or remotely. For remote use, I've been using VNC or Tarantella, opening a terminal window to use a shell - I haven't used Emacs remotely, except to edit files and such. I thought I'd try to use Emacs shell mode on the remote box, so I gave it a try: I opened Dired on a remote directory (/host-address:/home/my-home). I then used M-x shell. However, the shell opened with a Windows Temp directory as the pwd, and the shell that was used was my Windows shell (bash). And, I couldn't cd to a remote directory within the *shell* buffer, even using the syntax /host-address:/home/my-home... So, my question is, can it be done? Can you use Emacs shell mode remotely? If so, how? Ideally, shell-mode would somehow figure out where I was (e.g. remote location) and use the appropriate shell when I do `M-x shell', since I logged into the remote box for ftp. If that couldn't be done automatically, I could tell Emacs what shell to use for remote use. Is anything like this possible? How do others use Emacs remotely?