all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: remote tramp hangs
Date: Tue, 15 Dec 2009 07:27:03 +0100	[thread overview]
Message-ID: <876388rbuw.fsf@gmx.de> (raw)
In-Reply-To: <yzvfx7nb20e.fsf@did75-11-82-231-40-223.fbx.proxad.net> ("Raphaël Berbain"'s message of "Mon, 14 Dec 2009 15:20:59 +0100")

[-- Attachment #1: Type: text/plain, Size: 1247 bytes --]

raphael.berbain@gmail.com (Raphaël 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='' PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh
> 15:06:48.472304 tramp-wait-for-regexp (6) # 
> exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh.
> #$ 

At least, we have fixed the prompt problem :-)

> 15:06:48.533579 tramp-send-command (6) # _echo\b\b\b\b\bstty icanon erase ^H cols 32767_echo\b\b\b\b\b
> 15:06:48.561471 tramp-accept-process-output (10) # 
> _echo\b \b\b \b\b \b\b \b\b \bstty icanon erase ^H cols 32767_echo\b \b\b \b\b \b\b \b\b \b.

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) # 
> "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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1065 bytes --]

*** /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))))

  reply	other threads:[~2009-12-15  6:27 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-01 11:03 remote tramp hangs Raphaël Berbain
2009-12-01 18:16 ` Andreas Politz
2009-12-01 19:04 ` Peter Dyballa
2009-12-01 19:47 ` Harry Putnam
2009-12-01 20:12 ` Michael Albinus
     [not found] ` <mailman.11972.1259694305.2239.help-gnu-emacs@gnu.org>
2009-12-01 21:46   ` Raphaël Berbain
     [not found] ` <mailman.11976.1259697012.2239.help-gnu-emacs@gnu.org>
2009-12-01 21:54   ` Raphaël Berbain
     [not found] ` <mailman.11977.1259698390.2239.help-gnu-emacs@gnu.org>
2009-12-01 21:55   ` Raphaël Berbain
2009-12-02  9:23     ` Michael Albinus
     [not found]     ` <mailman.12019.1259745826.2239.help-gnu-emacs@gnu.org>
2009-12-02  9:56       ` Raphaël Berbain
2009-12-02 10:15         ` Tim X
2009-12-02 13:56           ` Raphaël Berbain
2009-12-02 13:01         ` Michael Albinus
2009-12-02 17:02           ` Andreas Politz
     [not found]         ` <mailman.12025.1259758918.2239.help-gnu-emacs@gnu.org>
2009-12-02 13:56           ` Raphaël Berbain
2009-12-02 21:33             ` Michael Albinus
     [not found]             ` <mailman.12053.1259789634.2239.help-gnu-emacs@gnu.org>
2009-12-03  9:35               ` Raphaël Berbain
2009-12-03 11:22                 ` Raphaël Berbain
2009-12-03 20:58                   ` Michael Albinus
     [not found]                   ` <mailman.12120.1259873928.2239.help-gnu-emacs@gnu.org>
2009-12-03 22:50                     ` Raphaël Berbain
2009-12-07  6:43                       ` Michael Albinus
     [not found]                       ` <mailman.12409.1260168197.2239.help-gnu-emacs@gnu.org>
2009-12-14 14:20                         ` Raphaël Berbain
2009-12-15  6:27                           ` Michael Albinus [this message]
     [not found]                           ` <mailman.12991.1260858434.2239.help-gnu-emacs@gnu.org>
2009-12-15  8:14                             ` Raphaël Berbain
2009-12-15 21:17                               ` Michael Albinus
2009-12-02 22:03 ` notbob

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=876388rbuw.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.