[Top][All Lists]

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

Re: tramp connection problem on windows with plink (incl. workaround)

From: Michael Albinus
Subject: Re: tramp connection problem on windows with plink (incl. workaround)
Date: Tue, 25 Nov 2008 14:46:27 +0100
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/21.3 (hpux)

"Thomas Bleier" <address@hidden> writes:

> Hi,


> I had problems with tramp connecting to various linux hosts because of the
> "multiple prompts after the stty" problem that was already discussed some
> time ago on this list (at least according to the archives). None of the
> approaches discussed (sending igncr, changing language-environment) worked
> for me, so I found another workaround, that may be helpful to others, so I'd
> like to share it here.

Which Tramp version do you use? IIRC, the problem does not happen with
Tramp 2.1 anymore (but I have no access to the archives just now).

> Looking at the debug buffer the response from the server obviously contained
> multiple prompts ("$ "), after the stty command, which the default
> tramp-shell-prompt-pattern is unable to handle. Futher more, different linux
> variants seem to produce a different number of prompts... Other posts as
> mentioned above tried to fix the problem at the root, but did not work for
> me, so I just did a quick workaround by adapting the
> tramp-shell-prompt-pattern using
> (setq tramp-shell-prompt-pattern "^[^#$%>\n ]*\\(\\$ \\)*[#$%>]
> *\\(\e\\[[0-9;]*[a-zA-Z] *\\)*")
> in my .emacs (instead of the default "^[^#$%>\n]*[#$%>]
> *\\(\e\\[[0-9;]*[a-zA-Z] *\\)*").
> Seems to work in my setup, but I'm not sure if it has any other side
> effects.

I fear that such a prompt regexp could match also non-prompt
lines. I'ld prefer to keep the prompt regexp as simple as
possible. And it might still be worth to find the reason of the
problem, if it happens for you also with Tramp 2.1.

> best regards,
> __
> /homas

Best regards, Michael.

reply via email to

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