From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lyallp Newsgroups: gmane.emacs.help Subject: Help with Emacs 22.2.1 using TRAMP and PuTTY/plink Date: Wed, 30 Apr 2008 23:35:54 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1209680479 7739 80.91.229.12 (1 May 2008 22:21:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2008 22:21:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 02 00:21:55 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JrhA1-0006eL-L6 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 May 2008 00:21:53 +0200 Original-Received: from localhost ([127.0.0.1]:40865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jrh9K-0005el-IE for geh-help-gnu-emacs@m.gmane.org; Thu, 01 May 2008 18:21:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r9g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 99 Original-NNTP-Posting-Host: 203.26.122.12 Original-X-Trace: posting.google.com 1209623754 31752 127.0.0.1 (1 May 2008 06:35:54 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 1 May 2008 06:35:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r9g2000prd.googlegroups.com; posting-host=203.26.122.12; posting-account=1YegawoAAACrSjd-cjAWyiBIq7teUjfI User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:158306 X-Mailman-Approved-At: Thu, 01 May 2008 18:19:14 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53688 Archived-At: 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=3D' 'PROMPT_COMMAND=3D' 'PS1=3D$ ' /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 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 user_name@the_host 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\).*:^@? *" 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 =3D (.*)\|Terminal type\? \[.*\]\)\s-*" from remote shell # Looking for regexp "" from remote shell # Looking for regexp "^.*\([pP]assword\|passphrase\).*:^@? *" 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 user_name@the_host* unset HISTORY\r >^H^[]2 the_host - user_name - /home/user_name=07user_name@the_host:>^H~^M $ >^H^[]2 the_host - user_name - /home/user_name=07user_name@the_host:>^H~^M $ # Sending command to remote shell: unset correct $ unset correct # Process *tramp/plink user_name@the_host* unset correct\r >^H^[]2 the_host - user_name - /home/user_name=07user_name@the_host:>^H~^M $ >^H^[]2 the_host - user_name - /home/user_name=07user_name@the_host:>^H~^M $ # Sending command to remote shell: unset autocorrect $ unset autocorrect # Process *tramp/plink user_name@the_host* unset autocorrect\r >^H^[]2 the_host - user_name - /home/user_name=07user_name@the_host:>^H~^M $ >^H^[]2 the_host - user_name - /home/user_name=07user_name@the_host:>^H~^M $ $ exec env 'ENV=3D' 'PROMPT_COMMAND=3D' 'PS1=3D$ ' /bin/sh # # Waiting 30s for remote `/bin/sh' to come up... # Process nil exec env 'ENV=3D' 'PROMPT_COMMAND=3D' 'PS1=3D$ ' /bin/sh #\r $ $ [[Regexp `\(^[^#$%> ]*[#$%>] *\|^[^#$%> ]*[#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'' not found in 30 secs]] Any assistance would be greatly appreciated. =2E..Lyall