RE: how to troubleshoot tramp on windows
Many thanks Michael, I had upgraded Tramp incorrectly -- now working thanks to your help. (ensure that --with-lispdir and --infodir options are set correctly when running configure) Alec -Original Message- From: Michael Albinus [mailto:[EMAIL PROTECTED] Sent: Wednesday, 14 May 2008 5:42 PM To: Clews, Alec Cc: [EMAIL PROTECTED] Subject: Re: how to troubleshoot tramp on windows Alec Clews <[EMAIL PROTECTED]> writes: > I seem to have a different problem with plink if I use a non-standard port. > Plink expects the port number to be supplied using the -P option. > However Tramp uses -p. Is there some way to re-configure this behaviour please? This is fixed in Tramp's CVS already (I assume you are using Tramp 2.1.x). The "pscp" entry in `tramp-methods' must look like this: ("pscp" (tramp-login-program"plink") (tramp-login-args (("%h") ("-l" "%u") ("-P" "%p") ("-ssh"))) (tramp-remote-sh"/bin/sh") (tramp-copy-program "pscp") (tramp-copy-args(("-P") ("%p") ("-scp") ("-p" "%k"))) (tramp-copy-keep-date t) (tramp-password-end-of-line "xy") ;see docstring for "xy" (tramp-default-port 22)) Will be available with Tramp 2.1.14. "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." ___ Tramp-devel mailing list Tramp-devel@gnu.org http://lists.gnu.org/mailman/listinfo/tramp-devel
Re: how to troubleshoot tramp on windows
Alec Clews <[EMAIL PROTECTED]> writes: > I seem to have a different problem with plink if I use a non-standard port. > Plink expects the port number to be supplied using the -P option. However > Tramp uses -p. Is there some way to re-configure this behaviour please? This is fixed in Tramp's CVS already (I assume you are using Tramp 2.1.x). The "pscp" entry in `tramp-methods' must look like this: ("pscp" (tramp-login-program"plink") (tramp-login-args (("%h") ("-l" "%u") ("-P" "%p") ("-ssh"))) (tramp-remote-sh"/bin/sh") (tramp-copy-program "pscp") (tramp-copy-args(("-P") ("%p") ("-scp") ("-p" "%k"))) (tramp-copy-keep-date t) (tramp-password-end-of-line "xy") ;see docstring for "xy" (tramp-default-port 22)) Will be available with Tramp 2.1.14. > Thanks > > Alec Clews Best regards, Michael. ___ Tramp-devel mailing list Tramp-devel@gnu.org http://lists.gnu.org/mailman/listinfo/tramp-devel
Re: how to troubleshoot tramp on windows
Paul Gatewood onr.navy.mil> writes: > I actually got this working and am sorry I was so busy I did not follow up my own posting with the results. > I seem to have a different problem with plink if I use a non-standard port. Plink expects the port number to be supplied using the -P option. However Tramp uses -p. Is there some way to re-configure this behaviour please? Thanks Alec Clews -alec dot clews at anz dot com- ___ Tramp-devel mailing list Tramp-devel@gnu.org http://lists.gnu.org/mailman/listinfo/tramp-devel
Re: how to troubleshoot tramp on windows
Michael -- thanks very much for the response. I actually got this working and am sorry I was so busy I did not follow up my own posting with the results. The problem seems to have been with my definition of the variable shell-prompt-pattern. Even though I kept changing it, thinking it had to be the problem, the changes never made a difference. Then I thought to exit emacs (something I don't do regularly!), thinking maybe the process which had been spawned retained the earlier value. Once I restarted (having followed the other steps outlined in the document I cited), it worked fine. Now, in emacs, I only use the following 3 lines of elisp: (require 'tramp) (setq tramp-default-method "plink") (setq shell-prompt-pattern "^.*\\$ ") and then I can use the syntax /plink:[EMAIL PROTECTED]:. (as argument, say, to dired), after which I am prompted for the password, and then I get the normal dired listing. In case it helps anyone else, I also got derailed once when I found out the variable of PATH used for cmd.exe (windows xp) was getting clobbered by some remote process. Our workstations are managed by a central group who often "push" updates, etc. to individual workstations. It took me a little while to figure out that this was happening, as well. Thanks again, for your response, and for providing such a useful package! -Paul Michael Albinus wrote: Paul Gatewood <[EMAIL PROTECTED]> writes: Hi, When I try to open a file, e.g. using the syntax: /[EMAIL PROTECTED]:.profile I get the following output in the buffer *debug tramp/plink [EMAIL PROTECTED] (sorry the output is wrapped): 1File error: [[Regexp `^///92fb9be1e1d8535b966a60c6d8167761 ?$' not found in 10 secs]] [...] 11:01:52 tramp-get-connection-property (7) # home-directory undef 11:01:52 tramp-get-connection-property (7) # process-name nil 11:01:52 tramp-get-connection-property (7) # last-cmd-time (17985 57341 55) 11:01:52 tramp-get-connection-property (7) # process-name nil 11:01:52 tramp-get-connection-property (7) # remote-echo nil 11:01:52 tramp-send-command (6) # echo are you awake This is not the complete Tramp debug buffer. The "are you awake" message is sent once a connection was opened already, and a new command has been sent after a while. For analysis, I'ld like to see the whole debug buffer after a fresh Emacs start and a new Tramp connection attempt. This shall reduce side effects. It would simplify the analysis if you would send your bug report via M-x tramp-submit-bug. This provides additional information. Best regards, Michael. ___ Tramp-devel mailing list Tramp-devel@gnu.org http://lists.gnu.org/mailman/listinfo/tramp-devel
Re: how to troubleshoot tramp on windows
Paul Gatewood <[EMAIL PROTECTED]> writes: Hi, > When I try to open a file, e.g. using the syntax: > /[EMAIL PROTECTED]:.profile > I get the following output in the buffer > *debug tramp/plink [EMAIL PROTECTED] (sorry the output is wrapped): > > 1File error: [[Regexp `^///92fb9be1e1d8535b966a60c6d8167761 > ?$' not found in 10 secs]] [...] > 11:01:52 tramp-get-connection-property (7) # home-directory undef > 11:01:52 tramp-get-connection-property (7) # process-name nil > 11:01:52 tramp-get-connection-property (7) # last-cmd-time (17985 > 57341 55) > 11:01:52 tramp-get-connection-property (7) # process-name nil > 11:01:52 tramp-get-connection-property (7) # remote-echo nil > 11:01:52 tramp-send-command (6) # echo are you awake This is not the complete Tramp debug buffer. The "are you awake" message is sent once a connection was opened already, and a new command has been sent after a while. For analysis, I'ld like to see the whole debug buffer after a fresh Emacs start and a new Tramp connection attempt. This shall reduce side effects. It would simplify the analysis if you would send your bug report via M-x tramp-submit-bug. This provides additional information. Best regards, Michael. ___ Tramp-devel mailing list Tramp-devel@gnu.org http://lists.gnu.org/mailman/listinfo/tramp-devel
how to troubleshoot tramp on windows
I am trying to get tramp to work on windows xp, connecting to GNU/Linux I have looked at a lot of suggestions on the web, and have tried following the steps in http://www.jeremyenglish.org/docs/tramp_ntmacs.pdf but still can not get it to work. I am using cygwin and putty. I have generated the keys, installed the public key on the server, set up the client, and configured emacs as described in the pdf cited. I have set tramp-verbose to 10, and tramp-debug-buffer to t. When I try to open a file, e.g. using the syntax: /[EMAIL PROTECTED]:.profile I get the following output in the buffer *debug tramp/plink [EMAIL PROTECTED] (sorry the output is wrapped): 1File error: [[Regexp `^///92fb9be1e1d8535b966a60c6d8167761 ?$' not found in 10 secs]] (complete output below) The normal login shell for this user is ksh. Having found many references to problems involving the shell prompt, I tried setting the emacs shell prompt variables to the fixed string used as PS1 when I execute /bin/sh interactively ("sh-3.00$ "). Those values (output from describe-variable) are as follows: shell-prompt-pattern's value is "sh-3\\.00\\$ " tramp-shell-prompt-pattern's value is "sh-3\\.00\\$ " Does anyone know how I can go about finding just what the problem is, and what to do about it? -Paul Below is everything generated to the tramp debug buffer after trying to open the remote file. 11:01:52 tramp-get-connection-property (7) # home-directory undef 11:01:52 tramp-get-connection-property (7) # process-name nil 11:01:52 tramp-get-connection-property (7) # last-cmd-time (17985 57341 55) 11:01:52 tramp-get-connection-property (7) # process-name nil 11:01:52 tramp-get-connection-property (7) # remote-echo nil 11:01:52 tramp-send-command (6) # echo are you awake 11:01:52 tramp-get-connection-property (7) # process-name nil 11:01:52 tramp-get-connection-property (7) # chunksize nil 11:01:52 tramp-set-connection-property (7) # last-cmd-time (17985 57952 62) 11:01:52 tramp-send-string (10) # echo are you awake 11:01:52 tramp-get-connection-property (7) # process-buffer nil 11:01:52 tramp-get-connection-property (7) # check-remote-echo nil 11:01:52 tramp-get-connection-property (7) # check-remote-echo nil 11:01:52 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run 11:01:52 tramp-accept-process-output (10) # are you awake $ $ 11:01:52 tramp-get-connection-property (7) # check-remote-echo nil 11:01:52 tramp-get-connection-property (7) # check-remote-echo nil 11:01:52 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run 11:01:53 tramp-accept-process-output (10) # are you awake $ $ 11:01:53 tramp-get-connection-property (7) # check-remote-echo nil 11:01:53 tramp-get-connection-property (7) # check-remote-echo nil 11:01:53 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run 11:01:54 tramp-accept-process-output (10) # are you awake $ $ 11:01:54 tramp-get-connection-property (7) # check-remote-echo nil 11:01:54 tramp-get-connection-property (7) # check-remote-echo nil 11:01:54 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run 11:01:55 tramp-accept-process-output (10) # are you awake $ $ 11:01:55 tramp-get-connection-property (7) # check-remote-echo nil 11:01:55 tramp-get-connection-property (7) # check-remote-echo nil 11:01:55 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run 11:01:56 tramp-accept-process-output (10) # are you awake $ $ 11:01:56 tramp-get-connection-property (7) # check-remote-echo nil 11:01:56 tramp-get-connection-property (7) # check-remote-echo nil 11:01:56 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run 11:01:57 tramp-accept-process-output (10) # are you awake $ $ 11:01:57 tramp-get-connection-property (7) # check-remote-echo nil 11:01:57 tramp-get-connection-property (7) # check-remote-echo nil 11:01:57 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run 11:01:58 tramp-accept-process-output (10) # are you awake $ $ 11:01:58 tramp-get-connection-property (7) # check-remote-echo nil 11:01:58 tramp-get-connection-property (7) # check-remote-echo nil 11:01:58 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run 11:01:59 tramp-accept-process-output (10) # are you awake $ $ 11:01:59 tramp-get-connection-property (7) # check-remote-echo nil 11:01:59 tramp-get-connection-property (7) # check-remote-echo nil 11:01:59 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run 11:02:00 tramp-accept-process-output (10) # are you awake $ $ 11:02:00 tramp-get-connection-property (7) # check-remote-echo nil 11:02:00 tramp-get-connection-property (7) # check-remote-echo nil 11:02:00 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run 11:02:01 tramp-accept-process-output (10) # are you awake $ $ 11:02:01 tramp-get-connection-property (7) # check-remote-echo nil 11:02:01 tramp-get-connection-property (7) # check-remote-