[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp hangs setting up remote shell prompt.
From: |
Michael Albinus |
Subject: |
Re: Tramp hangs setting up remote shell prompt. |
Date: |
Thu, 15 Jul 2010 16:10:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
David Keegan <address@hidden> writes:
> Michael,
Hi David,
> Please refer below to tramp buffer contents after hang on
> attempted connection.
--8<---------------cut here---------------start------------->8---
08:26:23.754168 tramp-accept-process-output (10) #
exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\ PS2=
< exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\ PS2='
' PS3='' /bin/sh
#$
#$
08:26:23.754489 tramp-get-connection-property (7) # check-remote-echo nil
08:26:23.754764 tramp-get-connection-property (7) # check-remote-echo nil
--8<---------------cut here---------------end--------------->8---
That looks very obscure. But Tramp should have recognized the prompt,
which is "#$ " in this situation. The trace shows "#$" (missing the
trailing space); I don't know whether it was stripped during mail
transfer, or not.
So let's try a prompt without trailing space. Could you, please, apply
the following patch:
--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/tramp/lisp/tramp.el.~1~ 2010-07-13 17:43:56.000000000
+0200
--- /home/albinus/src/tramp/lisp/tramp.el 2010-07-15 15:55:25.069519000
+0200
***************
*** 319,325 ****
The '$' character at the end is quoted; the string cannot be
detected as prompt when being sent on echoing hosts, therefore.")
! (defconst tramp-initial-end-of-output "#$ "
"Prompt when establishing a connection.")
(defvar tramp-methods
--- 319,325 ----
The '$' character at the end is quoted; the string cannot be
detected as prompt when being sent on echoing hosts, therefore.")
! (defconst tramp-initial-end-of-output "#$"
"Prompt when establishing a connection.")
(defvar tramp-methods
--8<---------------cut here---------------end--------------->8---
After that you shall close Emacs, and restart it again, because a
defconst does not change its value during evaluation when it was
declared already.
Best regards, Michael.
- Tramp hangs setting up remote shell prompt., David Keegan, 2010/07/10
- Re: Tramp hangs setting up remote shell prompt., Michael Albinus, 2010/07/11
- Re: Tramp hangs setting up remote shell prompt., David Keegan, 2010/07/11
- Re: Tramp hangs setting up remote shell prompt., Michael Albinus, 2010/07/12
- Re: Tramp hangs setting up remote shell prompt., David Keegan, 2010/07/12
- Re: Tramp hangs setting up remote shell prompt., Michael Albinus, 2010/07/13
- Message not available
- Re: Tramp hangs setting up remote shell prompt.,
Michael Albinus <=
- Re: Tramp hangs setting up remote shell prompt., David Keegan, 2010/07/15
- Re: Tramp hangs setting up remote shell prompt., Michael Albinus, 2010/07/16
- Re: Tramp hangs setting up remote shell prompt., David Keegan, 2010/07/16
- Re: Tramp hangs setting up remote shell prompt., Michael Albinus, 2010/07/17