From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: tramp Date: Fri, 02 Aug 2002 11:23:47 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1028280220 18165 127.0.0.1 (2 Aug 2002 09:23:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 2 Aug 2002 09:23:40 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17aYeo-0004is-00 for ; Fri, 02 Aug 2002 11:23:38 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17aYxv-0001eU-00 for ; Fri, 02 Aug 2002 11:43:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17aYfD-0000ET-00; Fri, 02 Aug 2002 05:24:03 -0400 Original-Received: from waldorf.cs.uni-dortmund.de ([129.217.4.42]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17aYf4-0000Da-00; Fri, 02 Aug 2002 05:23:54 -0400 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g729Nqb27255; Fri, 2 Aug 2002 11:23:52 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id LAA18049; Fri, 2 Aug 2002 11:23:47 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 4A1A13ADDC; Fri, 2 Aug 2002 11:23:47 +0200 (CEST) Original-To: Miles Bader In-Reply-To: (Miles Bader's message of "02 Aug 2002 10:29:07 +0900") Original-Lines: 74 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6243 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6243 Miles Bader writes: > Is tramp in the current emacs CVS (2002-08-02) supposed to work? > > I've tried a bunch of different filenames, and invariably tramp gets > confused and just hangs waiting for a prompt or something. When I use > ^G to interrupt it, and look at the `*tramp...*' buffer, I see a shell > prompt (but apparently tramp never realized it). Yes, I think so. > For instance, visiting: > > `/sudo:root@localhost:/etc': > > Shows the following messages: > > tramp: Opening connection for `root' using `sudo'... > tramp: Processing actions > tramp: Waiting 60s for prompt from remote shell > tramp: Looking for pattern ^.*\([pP]assword\|passphrase.*\): > tramp: Looking for pattern .*ogin: * > tramp: Looking for pattern ^\(([^) ]*)\|[^> ]*[>]\)\s-* This looks like your shell-prompt-pattern. Is it? > tramp: Found remote shell prompt. > tramp: Waiting 30s for remote `/bin/sh' to come up... > Quit > > [Seeing `Found remote shell prompt' immediately followed by > `Waiting 30s for remote `/bin/sh' to come up' seems ... odd.] Heh :-) First, Tramp logs in to the remote system and waits for any old shell prompt. But for proper operation, Tramp needs a Bourneish shell, so it issues "exec /bin/sh" first thing. Of course, after this Tramp again has to wait for a shell prompt... Maybe I should make this clearer in the messages. But how? > Looking in the `*tramp/sudo root@localhost*' buffer, I see: > > sh-2.05b# At this point, Tramp is again waiting for shell-prompt-pattern, and this shell prompt does not match the regexp above. Could this be the case? It used to be that Tramp tried to grok some common shell prompts in addition to shell-prompt-pattern. Maybe I should re-add this feature. > tramp: Looking for pattern Are you sure you want to continue connecting (yes/no)\? * > Quit > > [Note that even though the above appears as if it's asking a user > question, it doesn't seem to accept any input; I have to interrupt > it to do anything] Hm. Maybe this "looking for pattern" stuff should be removed from the default debugging messages. > Looking in the `*tramp/su root@localhost*' buffer, I see: > > > mcspd15:~# > > [that's a blank line at the beginning]. Looks like the same shell prompt problem. kai -- A large number of young women don't trust men with beards. (BFBS Radio)