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: remote tramp hangs Date: Tue, 15 Dec 2009 07:27:03 +0100 Message-ID: <876388rbuw.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1260858488 7255 80.91.229.12 (15 Dec 2009 06:28:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Dec 2009 06:28:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 15 07:28:01 2009 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.50) id 1NKQsz-0007M9-Ao for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Dec 2009 07:27:53 +0100 Original-Received: from localhost ([127.0.0.1]:60134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKQsz-0001F7-3O for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Dec 2009 01:27:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKQsK-0001Dt-KW for help-gnu-emacs@gnu.org; Tue, 15 Dec 2009 01:27:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKQsF-00018j-La for help-gnu-emacs@gnu.org; Tue, 15 Dec 2009 01:27:11 -0500 Original-Received: from [199.232.76.173] (port=50407 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKQsE-00018U-VO for help-gnu-emacs@gnu.org; Tue, 15 Dec 2009 01:27:07 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:51438) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NKQsE-0000Z9-EW for help-gnu-emacs@gnu.org; Tue, 15 Dec 2009 01:27:06 -0500 Original-Received: (qmail invoked by alias); 15 Dec 2009 06:27:04 -0000 Original-Received: from p4FC00E88.dip0.t-ipconnect.de (EHLO arthur.local) [79.192.14.136] by mail.gmx.net (mp003) with SMTP; 15 Dec 2009 07:27:04 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+H2Xsnd4uHJc4rdI48ikycx8Jj5PsnVg2kurO68k p7MGh1O5c8cpqd In-Reply-To: (=?utf-8?Q?=22Rapha=C3=ABl?= Berbain"'s message of "Mon, 14 Dec 2009 15:20:59 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:70653 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable raphael.berbain@gmail.com (Rapha=C3=ABl Berbain) writes: > Hi again, Hi, > I tried my use-case with CVS head tramp (tramp-version 2.1.18-pre, > tramp.el CVS revision 2.757) and I am sorry to report that it doesn't > work for me. > 15:06:48.386653 tramp-send-command (6) # exec env ENV=3D'' PROMPT_COMMAND= =3D'' PS1=3D\#\$\ PS2=3D'' PS3=3D'' /bin/sh > 15:06:48.472304 tramp-wait-for-regexp (6) #=20 > exec env ENV=3D'' PROMPT_COMMAND=3D'' PS1=3D\#\$\ PS2=3D'' PS3=3D'' /bin= /sh. > #$=20 At least, we have fixed the prompt problem :-) > 15:06:48.533579 tramp-send-command (6) # _echostty icanon erase ^H c= ols 32767_echo > 15:06:48.561471 tramp-accept-process-output (10) #=20 > _echo     stty icanon erase ^H cols 32767_echo     . = Your shell on the remote side cannot suppress echoing the sent command. Therefore, Tramp applies some special workarounds. > 15:06:48.746775 tramp-accept-process-output (10) # *tramp/scp root@harry*= run > 15:06:48.811461 tramp-accept-process-output (10) #=20 > "OpenBSD 4.5" > tramp_exit_status 0 Surprisingly, your remote shell stops to echo the sent command. Tramp looks for the echo, and is confused ... Could you, please, test the appended fix? Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment *** /home/albinus/src/tramp/lisp/tramp.el.~2.757.~ 2009-12-09 10:06:48.000000000 +0100 --- /home/albinus/src/tramp/lisp/tramp.el 2009-12-15 07:18:45.000000000 +0100 *************** *** 6562,6568 **** (delete-region begin (point)) (goto-char (point-min))))) ! (when (not (tramp-get-connection-property proc "check-remote-echo" nil)) ;; No echo to be handled, now we can look for the regexp. (goto-char (point-min)) (re-search-forward regexp nil t)))) --- 6562,6573 ---- (delete-region begin (point)) (goto-char (point-min))))) ! (when (or (not (tramp-get-connection-property proc "check-remote-echo" nil)) ! ;; Sometimes, the echo string is suppressed on the remote side. ! (not (string-equal ! (substring-no-properties ! tramp-echo-mark-marker 0 (min 5 (1- (point-max)))) ! (buffer-substring-no-properties 1 (min 6 (point-max)))))) ;; No echo to be handled, now we can look for the regexp. (goto-char (point-min)) (re-search-forward regexp nil t)))) --=-=-=--