tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: **: Re: tramp (2.1.17-pre); Nothing happens, waiting for something a


From: Fabrice Niessen
Subject: Re: **: Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt"
Date: Mon, 15 Nov 2010 11:51:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Michael,

Michael Albinus wrote:
>> Here is what I see in the echo area.
>>
>> Tramp: Waiting 60s for local shell to come up...
>> Tramp: Sending command `plink cauchy -l fni  -ssh && exit || exit'
>> Tramp: Waiting for prompts from remote shell
>> Tramp: Sending password
>> Tramp: Found remote shell prompt on `cauchy'
>>
>> ... but it does not do anything else... and I have to stop waiting after more
>> than a minute. Not connected, though...
>
> Let's check the traces:
>
> [...]
>
> 10:35:49.252000 tramp-send-command (6) # PROMPT_COMMAND='' PS1=\$\  PS2='' 
> PS3='' exec \bash
> 10:35:50.204000 tramp-wait-for-regexp (6) # 
>
> [?1034h/address@hidden:~ 0$ 
>
> bash does not accept the PS1 setting in the exec call. However, Tramp
> still detects the prompt.
>
> 10:35:50.204000 tramp-send-command (6) # 
> PS1=///77657d3502c121977584ac7ec5d40d3b\$
>
> Now Tramp tries again to set the prompt to its preferred value. bash
> does not accepts this, instead of we see in the connection buffer
>
> /address@hidden:~ 0$ 
>
> And this confuses Tramp.
>
> Could you, please, check your bash on the remote host? What does happen,
> if you call interactively in a terminal
>
> # PROMPT_COMMAND='' PS1=\$\  PS2='' PS3='' exec \bash

Here are the (confusioning?) results. I just removed the `exec' command so
that I could more quickly test different variations of the above (without
having to reconnect to the machine every time). See below, though, for the
exact result of the above command (with the `exec').

--8<---------------cut here---------------start------------->8---
address@hidden:~/src/Worg 0$ ssh address@hidden
address@hidden's password:
Permission denied, please try again.
address@hidden's password:
Last login: Mon Nov 15 11:38:35 2010 from 10.10.10.210
/address@hidden:~ 0$ PROMPT_COMMAND='' PS1=\$\  PS2='' PS3='' \bash
/address@hidden:~ 0$ exit
exit
/address@hidden:~ 0$ PROMPT_COMMAND='' PS1='>>'  PS2='' PS3='' \bash
/address@hidden:~ 0$ exit
exit
/address@hidden:~ 0$ export PROMPT_COMMAND='' PS1='>>'  PS2='' PS3=''; \bash
/address@hidden:~ 0$ exit
exit
>>exit
logout
Connection to cauchy closed.
address@hidden:~/src/Worg 0$
--8<---------------cut here---------------end--------------->8---


> And what happens, if you call
>
> # PS1=///77657d3502c121977584ac7ec5d40d3b\$

Here, still, the exact result of the above command you asked me to run:

--8<---------------cut here---------------start------------->8---
address@hidden:~/src/Worg 0$ ssh address@hidden
address@hidden's password:
Last login: Mon Nov 15 11:41:08 2010 from 10.10.10.210
/address@hidden:~ 0$ PROMPT_COMMAND='' PS1=\$\  PS2='' PS3='' exec \bash
/address@hidden:~ 0$ PS1=///77657d3502c121977584ac7ec5d40d3b\$
/address@hidden:~ 0$ exit
exit
Connection to cauchy closed.
address@hidden:~/src/Worg 0$
--8<---------------cut here---------------end--------------->8---

Does it help you to help me?

Best regards,
  Fabrice




reply via email to

[Prev in Thread] Current Thread [Next in Thread]