tramp-devel
[Top][All Lists]
Advanced

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

Re: windows cmd.exe shell


From: Michael Albinus
Subject: Re: windows cmd.exe shell
Date: Fri, 09 Nov 2018 10:18:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

"Ben Hyde" <address@hidden> writes:

Hi Ben,

>     Well, I also resist to use MS Windows. From time to time I'm urged
>     to do it, answering Tramp questions ...
>
> now i’m both embarrassed and i feel guilty.

Don't worry. As long as I don't need to test on MS Windows, everything
is fine. Answering questions about Tramp on MS Windows doesn't hurt :-)

>     …a proper shell on MS Windows. If you
>     know where to find such a shell (a file name), we could try to
>     convince
>     Tramp to go there.
>
> I was able to install one, and I took a stab at using it:
>
> (add-to-list 'tramp-methods
>              '("wssh"
>                (tramp-login-program "/tools/msys64/usr/bin/sh.exe")
>                (tramp-login-args (("-l" "%u") ("-p" "%p") ("%c") ("-e" 
> "none") ("%h")))
>                (tramp-async-args (("-q")))
>                (tramp-remote-shell "/tools/msys64/usr/bin/sh.exe")
>                (tramp-remote-shell-login ("-l"))
>                (tramp-remote-shell-args ("-c"))))

Well, you don't need to create a new method. You could overwrite
attributes of the existing methods:

--8<---------------cut here---------------start------------->8---
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:address@hidden:")
                   "login-program" "/tools/msys64/usr/bin/sh.exe"))

(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:address@hidden:")
                   "login-args"
                   '(("-l" "%u") ("-p" "%p") ("%c") ("-e" "none") ("%h"))))

...
--8<---------------cut here---------------end--------------->8---

"/ssh:address@hidden:" should be the remote identification
of your MS Windows machine. Read the Tramp manual for details

--8<---------------cut here---------------start------------->8---
(info "(tramp) Predefined connection information")
--8<---------------cut here---------------end--------------->8---

> But no joy
>
> I bet i’m doing something obviously wrong there, but if not I’ll get
> back to digging
> on this sooner or later.

Could you set tramp-verbose to 10 prior your tests, and send the
resulting debug buffer? Maybe we'll see what's going "wrong there".

> Thanks ! - ben

Best regards, Michael.



reply via email to

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