tramp-devel
[Top][All Lists]
Advanced

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

Re: tramp (2.1.3); cannot open remote files or directories using plink m


From: Michael Albinus
Subject: Re: tramp (2.1.3); cannot open remote files or directories using plink method
Date: Wed, 05 Oct 2005 22:23:43 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

"Bryson, Stewart" <address@hidden> writes:

> I type:
>
> C-x C-f /plink:address@hidden: RET
>
> Contents of *tramp/plink address@hidden buffer:
>
> stty -inlcr -echo kill '^U'
> $ $

Hmm. Your prompt appears doubled.

> Contents of *debug tramp/plink address@hidden
> buffer: 
>
> unset HISTORY
> _]0;address@hidden:~ address@hidden brysons]$ 

Again, a double prompt. With escape sequences.

> $ exec env 'ENV=' 'PS1=$ ' /bin/sh
> $ 
> $ # Setting up remote shell environment
> $ stty -inlcr -echo kill '^U'
> stty -inlcr -echo kill '^U'
> $ $ [[Regexp `\(^[^#$%>
> ]*[#$%>] *\|^[^#$%>
> ]*[#$%>] *\(_\[[0-9;]*[a-zA-Z] *\)*\)\'' not found in 30 secs]]

And now the prompt is not recognized, because it is "$ $ ". Tramp
looks for the following prompts:

>  tramp-shell-prompt-pattern "^[^#$%>\n]*[#$%>] *\\(_\\[[0-9;]*[a-zA-Z]
> *\\)*"
>
>  shell-prompt-pattern "^[^#$%>\n]*[#$%>] *"

Looks like you have either a nasty echo, or some special prompt
settings on the remote host.

Usually, Tramp sets the TERM environment variable on the remote host
to "dumb"; you could use it for checking in your init scripts. But
sometimes, it happens too late - I cannot see whether this is the case
for you. So for the first test please disable every setting for the
prompt on the remote host.

Best regards, Michael.




reply via email to

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