tramp-devel
[Top][All Lists]
Advanced

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

Re: Tramp and NT-Emacs with plink


From: Douglas Gray Stephens
Subject: Re: Tramp and NT-Emacs with plink
Date: Fri, 27 Sep 2002 16:37:31 -0500

Kai,

At 13:23 (GMT+0200) on 26-September-2002, Kai Großjohann wrote:
 > Douglas Gray Stephens <address@hidden> writes:
 > 
 > > The file is encoded and transfered via plink to NT-emacs, but
 > > something in the decoding on the PC is not 100%.  The buffer ends up
 > > correctly named, but empty.  I can take the debug file, pull out the
 > > base64 details, put them in a buffer, and run base64-decode-region to
 > > see the expected results.  I can insert ofther files.
 > 
 > Wah :-( The problem is the "echo are you awake" that's sent by
 > tramp-maybe-open-connection.  And tramp-maybe-open-connection is
 > called by tramp-get-connection-property.  What happens if you comment
 > out the call to tramp-maybe-open-connection in
 > tramp-get-connection-property?
 > 
 > I presume that there was a reason for this call to be there, but I
 > don't know what was the reason.
 > 
 > Hm.
 > 
 > Ah.  I found another way to change it.  Can you get the most recent
 > version from CVS?  I'll commit in a jiffy.  If not, here is the most
 > recent patch (after signature).

I had not upgraded to the current version till just now, so I was
running 2.0.19 with your last patch (adding an extract part to the AND
statement after
                 (> (tramp-time-diff (current-time) tramp-last-cmd-time) 60))
on line 5299).

Anyway doing a find file
  /plink:address@hidden:public_html/test.html
I noticed that I was getting prompted for a password twice (again an  
 echo are you awake
statement was triggering a second prompt for a password. An extract of
the debug buffer which continues from a session last used 24+ hours
ago is appended. 

I have just upgraded to 2.023, and your latest patch may have
addressed this issue.

For some reason cvs on my linux box failed to pull down the changes
(using
 cvs -z3 -d:pserver:address@hidden:/cvsroot/tramp update tramp
) so I went to the WEB page, thinking I would browse the source for
changes, anyway, 
 http://www.nongnu.org/tramp/#Obtaining%20%3csmall%3eTRAMP%3c%2fsmall%3e 
could do with an update (I'm not sure if you take care of the page).
There are some examples for using CVS

  Or follow the example session below: 

  ] cd ~/emacs
  ] cvs -d:pserver:address@hidden:/cvsroot/tramp login

  (Logging in to address@hidden)
  CVS password: (just hit RET here)
  ...

  ] cvs -z3 -d:pserver:address@hidden:/cvsroot/tramp co tramp

  You should now have a directory ~/emacs/tramp containing the latest version 
of TRAMP. You can fetch the latest updates from the
  repository by issuing the command: 

  ] cd ~/emacs/tramp
  ] cvs update -d

Personally I've been using 
 cd ~/emacs
 cvs -z3 -d:pserver:address@hidden:/cvsroot/tramp update tramp
(on Windows or Linux) as I do not have the CVSROOT environment
variable set.

I would suggest that the page is updated to either get people to set
the CVSROOT, or to specify the root on the command for update.


Cheers,

Douglas.



# Opening connection for address@hidden using plink...
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell
# Sending password
# Found remote shell prompt.
# Initializing remote shell
$ exec env PS1='$ ' /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
exec env 'PS1=$ ' /bin/sh
$ # Setting up remote shell environment
stty -inlcr -echo kill '^U'
$ $ # Determining coding system
foo
bar
$ # Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1'
$ # Waiting 30s for `set +o vi +o emacs'
$ # Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
$ # Waiting 30s for `unset CDPATH'
$ # Setting shell prompt
$ echo are you awake
are you awake
$ [[Remote prompt `^/////
?$' not found in 10 secs]]# Opening connection for address@hidden using plink...
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell
# Sending password
# Found remote shell prompt.
# Initializing remote shell
$ exec env PS1='$ ' /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
exec env 'PS1=$ ' /bin/sh
$ # Setting up remote shell environment
stty -inlcr -echo kill '^U'
$ $ # Determining coding system
foo
bar
$ # Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1'
$ # Waiting 30s for `set +o vi +o emacs'
$ # Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
$ # Waiting 30s for `unset CDPATH'
$ # Setting shell prompt
$ PS1='
/////
'; PS2=''; PS3=''
$ echo ~root
~root
$ while read d; do if test -x $d/bash -a -f $d/bash; then echo tramp_executable 
$d/bash; break; fi; done <<'EOF'







reply via email to

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