all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* tramp and shell, problem on windows 7
@ 2017-11-04  8:42 Shuguang Sun
  2017-11-04 13:42 ` Michael Albinus
  0 siblings, 1 reply; 9+ messages in thread
From: Shuguang Sun @ 2017-11-04  8:42 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

Windows7,
GNU Emacs 27.0.50 (build 1, x86_64-w64-mingw32) of 2017-10-21

- Problem 1: tramp and dired-do-shell-command:  start: Unknown job: /b
Why "start /b" is called remote side?

When I run tramp (plink) and go to a remote buffer (dired mode), run
dired-do-shell-command (!) on marked file (for example, R CMD BATCH * &).
It popup the buffer of * Async Shell Command *, and the command is not run
but a message "start: Unknown job: /b" which looks it runs the windows-like
command "start /b ..." on the remote shell.

- Problem 2: tramp and shell: env: c:/bin/ : No such file or directory
where "c:/" comes?

In a tramp dried buffer, call shell which suppose to raise the shell buffer
on remote server. However, I got error messge in the * shell * buffer that
"env: c:/bin/ : No such file or directory". I don't know where the "c:/"
comes from. When shell is called, it reads the remote path in the minibufer
with promotes "/plink:user@host:/path/to/dired/C:/Users/username/emacs/libexec/emacs/27.0.50/x86_64-w64-mingw32/cmdproxy.exe",
and I change it to "/plink:user@host:/bin/", and then I got error message
above. Below is the tracking:

Searching for
‘C:/Users/username/emacs/libexec/emacs/27.0.50/x86_64-w64-mingw32/cmdproxy.exe’....
Tramp: Opening connection for user@host using plink...
Tramp: Sending command ‘plink -l user  -ssh host && exit || exit’
Tramp: Waiting for prompts from remote shell...
Tramp: Sending password
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘host’
Tramp: Opening connection for user@host using plink...done


Best Regards,
Shuguang Sun


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-11-05  3:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-04  8:42 tramp and shell, problem on windows 7 Shuguang Sun
2017-11-04 13:42 ` Michael Albinus
2017-11-04 14:40   ` Eli Zaretskii
2017-11-04 15:25     ` Michael Albinus
2017-11-04 15:48       ` Eli Zaretskii
2017-11-04 15:46     ` Why are bugs discussed on this list? [was: tramp and shell ...] tomas
2017-11-04 16:13       ` Eli Zaretskii
2017-11-04 16:19         ` tomas
2017-11-05  3:08   ` tramp and shell, problem on windows 7 Shuguang Sun

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.