From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Shuguang Sun Newsgroups: gmane.emacs.help Subject: tramp and shell, problem on windows 7 Date: Sat, 4 Nov 2017 16:42:57 +0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509785007 21028 195.159.176.226 (4 Nov 2017 08:43:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Nov 2017 08:43:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 04 09:43:23 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAu30-000554-Fh for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 09:43:22 +0100 Original-Received: from localhost ([::1]:40156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAu37-0002kj-G7 for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 04:43:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAu2e-0002ke-Od for help-gnu-emacs@gnu.org; Sat, 04 Nov 2017 04:43:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAu2d-0000mK-An for help-gnu-emacs@gnu.org; Sat, 04 Nov 2017 04:43:00 -0400 Original-Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:51012) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAu2d-0000mB-5N for help-gnu-emacs@gnu.org; Sat, 04 Nov 2017 04:42:59 -0400 Original-Received: by mail-qk0-x235.google.com with SMTP id o187so5814264qke.7 for ; Sat, 04 Nov 2017 01:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=suxCfChyThG3HEhm94HYZlxa5k2kaLXHPvurRc/mXyA=; b=XnBoFnTQHDW8V2OS9vmbJAx8bQcaMGrQ+98aS5RMgSLzbOUYGO1AeFFf3RiaEbELYB 2FWAnMj8+I7ApaHQjkL82qydu9znchAC+0QQfCnngNGzc7/qhn9ZqAx8eE61hBSgGlih 4+OVbPok7qMRJPQ2YJrgoI9gfVr1DEu95C4fGcgWaCSiG/hCjLFb/to6N5n7NQIH084+ hA34BKMVhIY+C9FspeW+gvJ3oRUMvRAuSv4f+OcjZoQsfnozn4RHJrzYf1ytcrGO+aOk LWpMUS2zg4wq1nd6RdG3ugfkRPi7m+3hyix1UBXDz4+evzQIcg5vMM8zlUutURe2fiWz Z1CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=suxCfChyThG3HEhm94HYZlxa5k2kaLXHPvurRc/mXyA=; b=nxVbpxwhh73S1PL4JEFoojBYuwjXYcCl+tGepRy4Jqxs5WZE5YUF68WO22Ow2EOV0d BMZt0TdAyGsKuK+8/FKsozFpFHznMc8eEaKlGt+IiQjDNzYjyar8VRq7ByOYIZ/qY/9/ ELXlPnDUycRQdIt/OfR6SVmEJOAk91J74jfk2qwD4gCk0Zp471F0rAtrGK5VA3vs7Dq4 Uvfy9oPn4LQkuA2dEZ4aLzqqgnEJ+xk77ptHE067ZLgKxZe6t4/XTh1L5VoEnWKm00Xr 1tB1Ei85M1ty6O4cLcd0VVbycKtSp5YNxZEXh4G/n2mzfVVAF630fiE37fqtL70Coff1 cDhA== X-Gm-Message-State: AMCzsaX882SWQJ2P64dYl5PZ1BPVKGa5QPrCbfiTEmgXJ+cUOqnv61S2 F/vQHeu5jbltlC8yxiqe4esVcWShK59pbyiYcZQZzQ== X-Google-Smtp-Source: ABhQp+RrvIxjjimQck4lE0lo8630yj/DOg59/F1V96wVN5J8u9D2WAwnzSgSzpxPMHjQyPW2o3SOkSrad8nCrLxyzL8= X-Received: by 10.55.87.199 with SMTP id l190mr13208622qkb.30.1509784978283; Sat, 04 Nov 2017 01:42:58 -0700 (PDT) Original-Received: by 10.237.52.37 with HTTP; Sat, 4 Nov 2017 01:42:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::235 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114736 Archived-At: 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/libe= xec/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 =E2=80=98C:/Users/username/emacs/libexec/emacs/27.0.50/x86_64-w64-mingw32/c= mdproxy.exe=E2=80=99.... Tramp: Opening connection for user@host using plink... Tramp: Sending command =E2=80=98plink -l user -ssh host && exit || exit=E2= =80=99 Tramp: Waiting for prompts from remote shell... Tramp: Sending password Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on =E2=80=98host=E2=80=99 Tramp: Opening connection for user@host using plink...done Best Regards, Shuguang Sun