help-gnu-emacs
[Top][All Lists]
Advanced

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

Help with Emacs 22.2.1 using TRAMP and PuTTY/plink


From: lyallp
Subject: Help with Emacs 22.2.1 using TRAMP and PuTTY/plink
Date: Wed, 30 Apr 2008 23:35:54 -0700 (PDT)
User-agent: G2/1.0

Emacs version 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-27 on RELEASE

running on Windows XP
Connecting to a Solaris Unix host using PuTTY 0.60 plink with a pagent
running with suitable keys loaded.

I have updated windows PATH to include the PuTTY install directory so
Tramp can find it.

plink, by itself will quite happily connect.

I connect, but then it does not find the command line prompt unless I
change 'Tramp rsh end of line' in Customize->Files->Tramp to '\r'

The problem with this is that tramp puts a \r on the end of every
input line, which is not what I want.

Then, when tramp tries to execute
  exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' /bin/sh
it tacks a \n on the end, which is interpreted as a character in the /
bin/sh filename, which makes the program /bin/sh<newline> not found,
causing termination of the shell and subsequent termination of plink
and finally process 'exit' within emacs.

If I don't set the  'Tramp rsh end of line', then tramp does not find
the initial login prompt, which is returned (albeit a rather long one
as I update my window title via the prompt string)

I also tried setting it to '\n'

I have tweaked the debug output to show the process info...

Debug output is as follows (with control chars replaced by thier
visible equivilents):-

# Opening connection for address@hidden using nil...
# plink the_host -l user_name -ssh
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase\).*:address@hidden *" from
remote shell
# Looking for regexp ".*ogin\( .*\)?: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host
key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service
not known\|\(?:Permission denied\|Sorry, try again\)\.\).*\|^.*\
(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(\(?:Store key in cache\? (y/\|Update cached key
\? (y/n, Return cancels connectio\)n)\)\s-*" from remote shell
# Looking for regexp "\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*"
from remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase\).*:address@hidden *" from
remote shell
# Looking for regexp ".*ogin\( .*\)?: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Found remote shell prompt.
# Initializing remote shell
# Sending command to remote shell: unset HISTORY
$ unset HISTORY
# Process *tramp/plink address@hidden
unset HISTORY\r
>^H^[]2 the_host - user_name - /home/address@hidden:>^H~^M
$
>^H^[]2 the_host - user_name - /home/address@hidden:>^H~^M
$
# Sending command to remote shell: unset correct
$ unset correct
# Process *tramp/plink address@hidden
unset correct\r
>^H^[]2 the_host - user_name - /home/address@hidden:>^H~^M
$
>^H^[]2 the_host - user_name - /home/address@hidden:>^H~^M
$
# Sending command to remote shell: unset autocorrect
$ unset autocorrect
# Process *tramp/plink address@hidden
unset autocorrect\r
>^H^[]2 the_host - user_name - /home/address@hidden:>^H~^M
$
>^H^[]2 the_host - user_name - /home/address@hidden:>^H~^M
$ $ exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' /bin/sh #
# Waiting 30s for remote `/bin/sh' to come up...
# Process nil
exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' /bin/sh #\r
$ $ [[Regexp `\(^[^#$%>
]*[#$%>] *\|^[^#$%>
]*[#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'' not found in 30 secs]]


Any assistance would be greatly appreciated.

...Lyall


reply via email to

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