unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#29442: dired-do-shell-command puts "start /b" in tramp dired
@ 2017-11-25 18:09 Shuguang Sun
  2017-11-26  6:03 ` Shuguang Sun
  0 siblings, 1 reply; 2+ messages in thread
From: Shuguang Sun @ 2017-11-25 18:09 UTC (permalink / raw)
  To: 29442


[-- Attachment #1.1: Type: text/plain, Size: 1171 bytes --]

Hi,

local: Windows7, and shell comman is cmdproxy.exe/cmd
GNU Emacs 27.0.50 (build 1, x86_64-w64-mingw32) of 2017-11-24

In general dired buffer, if I call dired-do-shell-command on marked file
with end "&", it will call "start /b ..." to run asyn shell command.
However, it hould not happend for tramp dired buffer if the
tramp-remote-shell is not cmd.

For example, my server is linux and tramp-remote-shell is "/bin/sh". If I
run dired-do-shell-command with end "&", it suppose to send the command
directly, but it add "start /b" actually.

I attached the tramp debug for your reference.


Tramp setting:
  (push '("plink"
           (tramp-login-program        "plink")
           (tramp-login-args           (("-l" "%u") ("-P" "%p") ("-ssh")
("%h")))
           (tramp-remote-shell         "/bin/sh")
           (tramp-remote-shell-args    ("-c"))
           (tramp-copy-program         "pscp")
           (tramp-copy-args            (("-l" "%u") ("-P" "%p") ("-scp")
("-p" "%k") ("-q") ("-r")))
           (tramp-copy-keep-date t)
           (tramp-copy-recursive t)
           (tramp-default-port         22))
        tramp-methods)



Best Regards,
Shuguang Sun

[-- Attachment #1.2: Type: text/html, Size: 1865 bytes --]

[-- Attachment #2: tramp_dired_do_shell_command_debug.txt --]
[-- Type: text/plain, Size: 42657 bytes --]

;; Emacs: 27.0.50 Tramp: 2.3.3-pre -*- mode: outline; -*-
01:05:02.048261 tramp-maybe-open-connection (3) # Opening connection for username@host using plink...
01:05:02.058261 tramp-maybe-open-connection (6) # C:/Users/username/emacs/libexec/emacs/27.0.50/x86_64-w64-mingw32/cmdproxy.exe
01:05:02.198261 tramp-wait-for-regexp (6) # 
Microsoft Windows [ 6.1.7601]
 2009 Microsoft Corporation

c:\Users\username\AppData\Local\Temp>
01:05:02.198261 tramp-maybe-open-connection (3) # Sending command ‘plink -l username  -ssh host && exit || exit’
01:05:02.198261 tramp-send-command (6) # plink -l username  -ssh host && exit || exit
01:05:02.198261 tramp-process-actions (3) # Waiting for prompts from remote shell...
01:05:02.248261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:02.248261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:02.248261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:02.248261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:02.248261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:02.248261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:02.248261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:02.248261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:02.248261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:02.248261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:03.248261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:03.248261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:03.248261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:03.248261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:03.248261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:03.248261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:03.248261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:03.248261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:03.248261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:03.248261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:04.248261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:04.248261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:04.248261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:04.248261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:04.248261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:04.248261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:04.248261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:04.248261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:04.258261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:04.258261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:05.259261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:05.259261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:05.259261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:05.259261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:05.259261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:05.259261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:05.259261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:05.259261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:05.269261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:05.269261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:06.269261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:06.269261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:06.269261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:06.269261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:06.269261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:06.269261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:06.269261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:06.269261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:06.269261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:06.279261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:07.279261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:07.279261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:07.279261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:07.279261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:07.279261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:07.279261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:07.279261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:07.279261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:07.289261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:07.289261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:08.289261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:08.289261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:08.289261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:08.289261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:08.289261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:08.289261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:08.289261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:08.289261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:08.289261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:08.299261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:09.299261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:09.299261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:09.299261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:09.299261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:09.299261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:09.299261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:09.299261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:09.299261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:09.309261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:09.309261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:09.719261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:09.719261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:09.719261 tramp-process-one-action (5) # Call ‘tramp-action-password’
01:05:09.719261 tramp-action-password (3) # Sending password
01:05:09.729261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:09.729261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:09.729261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:09.729261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:09.729261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:09.739261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:09.739261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:09.739261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:09.779261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:09.779261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:09.779261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:09.779261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:09.779261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:09.779261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:09.779261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:09.779261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:09.779261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:09.779261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:10.779261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:10.779261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:10.779261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:10.779261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:10.779261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:10.779261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:10.779261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:10.779261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:10.779261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:10.789261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:10.789261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:10.789261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:10.789261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:10.789261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:10.789261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:10.789261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:10.789261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:10.799261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:10.799261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:10.799261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:11.799261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:11.799261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:11.799261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:11.799261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:11.799261 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
01:05:11.799261 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
01:05:11.799261 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
01:05:11.799261 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
01:05:11.809261 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
01:05:11.809261 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
01:05:12.619261 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
01:05:12.619261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
01:05:12.619261 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
01:05:12.619261 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
01:05:12.619261 tramp-process-one-action (5) # Call ‘tramp-action-succeed’
01:05:12.619261 tramp-process-actions (6) # 
plink -l username  -ssh host && exit || exit
username@host's password: 
Last login: Sat Nov 25 18:01:01 2017 from host.com
^[]0;username@host:~\a^[[?1034h[username@host ~]$ 
01:05:12.629261 tramp-process-actions (3) # Waiting for prompts from remote shell...done
01:05:12.629261 tramp-maybe-open-connection (3) # Found remote shell prompt on ‘host’
01:05:12.629261 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...
01:05:12.629261 tramp-send-command (6) # exec env TERM='dumb' INSIDE_EMACS='27.0.50,tramp:2.3.3-pre' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh 
01:05:13.119261 tramp-wait-for-regexp (6) # 
exec env TERM='dumb' INSIDE_EMACS='27.0.50,tramp:2.3.3-p \rre' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3=''  \r/bin/sh 
#$ 
01:05:13.119261 tramp-send-command (6) # (cd ~/) 2>/dev/null; echo tramp_exit_status $?
01:05:13.399261 tramp-wait-for-regexp (6) # 
(cd ~/) 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 0
#$ 
01:05:13.399261 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...done
01:05:13.399261 tramp-open-connection-setup-interactive-shell (5) # Setting up remote shell environment
01:05:13.399261 tramp-send-command (6) # stty -inlcr -onlcr -echo kill '^U' erase '^H'
01:05:13.669261 tramp-wait-for-regexp (6) # 
stty -inlcr -onlcr -echo kill '^U' erase '^H'
#$ 
01:05:13.669261 tramp-send-command (6) # echo foo
01:05:13.929261 tramp-wait-for-regexp (6) # 
foo
#$ 
01:05:13.929261 tramp-open-connection-setup-interactive-shell (5) # Setting shell prompt
01:05:13.929261 tramp-send-command (6) # PS1=///abe7f3a26b2281f7be9d336425348544\#\$ PS2='' PS3='' PROMPT_COMMAND=''
01:05:14.199261 tramp-wait-for-regexp (6) # 
///abe7f3a26b2281f7be9d336425348544#$
01:05:14.199261 tramp-open-connection-setup-interactive-shell (5) # Checking system information
01:05:14.199261 tramp-send-command (6) # echo \"`uname -sr`\" 2>/dev/null; echo tramp_exit_status $?
01:05:14.480261 tramp-wait-for-regexp (6) # 
"Linux 2.6.32-696.1.1.el6.x86_64"
tramp_exit_status 0
///abe7f3a26b2281f7be9d336425348544#$
01:05:14.480261 tramp-open-connection-setup-interactive-shell (5) # Determining coding system
01:05:14.480261 tramp-send-command (6) # echo foo ; echo bar
01:05:14.750261 tramp-wait-for-regexp (6) # 
foo
bar
///abe7f3a26b2281f7be9d336425348544#$
01:05:14.750261 tramp-open-connection-setup-interactive-shell (5) # Setting coding system to ‘utf-8’ and ‘utf-8-unix’
01:05:14.750261 tramp-send-command (6) # set +o vi +o emacs
01:05:15.020261 tramp-wait-for-regexp (6) # 
///abe7f3a26b2281f7be9d336425348544#$
01:05:15.020261 tramp-open-connection-setup-interactive-shell (5) # Checking remote host type for ‘send-process-string’ bug
01:05:15.020261 tramp-set-remote-path (5) # Setting $PATH environment variable
01:05:15.020261 tramp-send-command (6) # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export PATH
01:05:15.290261 tramp-wait-for-regexp (6) # 
///abe7f3a26b2281f7be9d336425348544#$
01:05:15.290261 tramp-send-command (6) # mesg n 2>/dev/null; biff n 2>/dev/null
01:05:15.570261 tramp-wait-for-regexp (6) # 
///abe7f3a26b2281f7be9d336425348544#$
01:05:15.570261 tramp-send-command (6) # stty tab0
01:05:15.840261 tramp-wait-for-regexp (6) # 
///abe7f3a26b2281f7be9d336425348544#$
01:05:15.840261 tramp-send-command (6) # stty iutf8 2>/dev/null
01:05:16.110261 tramp-wait-for-regexp (6) # 
///abe7f3a26b2281f7be9d336425348544#$
01:05:16.110261 tramp-send-command (6) # echo \"`tty`\" 2>/dev/null; echo tramp_exit_status $?
01:05:16.390261 tramp-wait-for-regexp (6) # 
"/dev/pts/34"
tramp_exit_status 0
///abe7f3a26b2281f7be9d336425348544#$
01:05:16.390261 tramp-open-connection-setup-interactive-shell (5) # Setting default environment
01:05:16.390261 tramp-send-command (6) # while read var val; do export $var="$val"; done <<'b5813930c63cf67ca7e353816168f973'
LC_ALL en_US.utf8
ENV ''
TMOUT 0
LC_CTYPE ''
PAGER cat
b5813930c63cf67ca7e353816168f973
01:05:16.660261 tramp-wait-for-regexp (6) # 
///abe7f3a26b2281f7be9d336425348544#$
01:05:16.660261 tramp-send-command (6) # unset CDPATH HISTORY MAIL MAILCHECK MAILPATH autocorrect correct
01:05:16.920261 tramp-wait-for-regexp (6) # 
///abe7f3a26b2281f7be9d336425348544#$
01:05:16.920261 tramp-maybe-open-connection (3) # Opening connection for username@host using plink...done
01:05:16.920261 tramp-send-command (6) # echo $$ 2>/dev/null; echo tramp_exit_status $?
01:05:17.190261 tramp-wait-for-regexp (6) # 
27538
tramp_exit_status 0
///abe7f3a26b2281f7be9d336425348544#$
01:05:17.190261 tramp-send-command (6) # cd /opt/bee/home/username/test/ &&  exec <<'b5813930c63cf67ca7e353816168f973' env PS1\=/plink\:username\@host\:/opt/bee/home/username/test/\ \#\$\  /bin/sh
(
start /b R.exe CMD BATCH --vanilla "coxph_bench.r"
) </dev/tty
b5813930c63cf67ca7e353816168f973
01:05:53.157051 tramp-handle-insert-directory (0) # Opening directory /plink:username@host:/opt/bee/home/username/test/...
01:05:53.167051 tramp-send-command (6) # echo are you awake
01:05:53.437048 tramp-wait-for-regexp (6) # 
are you awake
///abe7f3a26b2281f7be9d336425348544#$
01:05:53.437048 tramp-send-command (6) # test -d /opt/bee/home/username/test 2>/dev/null; echo tramp_exit_status $?
01:05:53.697046 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///abe7f3a26b2281f7be9d336425348544#$
01:05:53.697046 tramp-do-directory-files-and-attributes-with-stat (5) # directory-files-and-attributes with stat: /opt/bee/home/username/test/
01:05:53.697046 tramp-send-command (6) # cd /opt/bee/home/username/test/ && echo "("; (/bin/ls --color=never --quoting-style=shell -a | xargs env QUOTING_STYLE=locale \stat -c '(/////%n///// (/////%N/////) %h /////%U///// /////%G///// %Xe0 %Ye0 %Ze0 %se0 /////%A///// t %ie0 -1)' -- 2>/dev/null | sed -e 's/"/\\"/g' -e 's/\/\/\/\/\//"/g'); echo ")" 2>/dev/null; echo tramp_exit_status $?
01:05:54.218041 tramp-wait-for-regexp (6) # 
(
("." ("`.'") 7 "username" "user" 1510797606e0 1510797606e0 1510797606e0 614e0 "drwxr-xr-x" t 8707819961e0 -1)
(".." ("`..'") 26 "username" "user" 1509597856e0 1509597856e0 1509597856e0 1447e0 "drwx------" t 8706271905e0 -1)
("coxph_bench_nocomp.r.Rout" ("`coxph_bench_nocomp.r.Rout'") 1 "username" "user" 1493202223e0 1493202223e0 1503769113e0 17046e0 "-rwxr--r--" t 8707896905e0 -1)
("coxph_bench.r" ("`coxph_bench.r'") 1 "username" "user" 1511625632e0 1511625632e0 1511625632e0 7856e0 "-rwxrw-r--" t 9098763711e0 -1)
("coxph_bench.r.Rout" ("`coxph_bench.r.Rout'") 1 "username" "user" 1493203813e0 1493203813e0 1503769113e0 16951e0 "-rw-r--r--" t 8708149539e0 -1)
("DDCP_CD.r" ("`DDCP_CD.r'") 1 "username" "user" 1498115421e0 1498115421e0 1503769113e0 8743e0 "-rw-rw-r--" t 8708149537e0 -1)
("diag" ("`diag'") 2 "username" "user" 1510561189e0 1510561189e0 1510561189e0 0e0 "drwxrwxr-x" t 9079931952e0 -1)
(".dir-locals.el" ("`.dir-locals.el'") 1 "username" "user" 1493202868e0 1493202868e0 1503769113e0 173e0 "-rwxr--r--" t 8708164623e0 -1)
("envs.txt" ("`envs.txt'") 1 "username" "user" 1493203959e0 1493203959e0 1503769113e0 4276e0 "-rwxr--r--" t 8708149540e0 -1)
("ex_tensorflow.r" ("`ex_tensorflow.r'") 1 "username" "user" 1497684870e0 1497684870e0 1503769113e0 174e0 "-rw-rw-r--" t 8708149541e0 -1)
("gt_pts.r" ("`gt_pts.r'") 1 "username" "user" 1498445500e0 1498445500e0 1503769113e0 1972e0 "-rw-rw-r--" t 8707896906e0 -1)
("jags_parallel.r" ("`jags_parallel.r'") 1 "username" "user" 1498548733e0 1498548733e0 1503769113e0 523e0 "-rw-rw-r--" t 8708149542e0 -1)
("misc.R" ("`misc.R'") 1 "username" "user" 1498100017e0 1498100017e0 1503769113e0 445e0 "-rw-rw-r--" t 8708149543e0 -1)
("options lang1.sas" ("`options lang1.sas'") 1 "username" "user" 1509532329e0 1509532329e0 1509532329e0 276e0 "-rw-r--r--" t 9034465744e0 -1)
("R" ("`R'") 2 "username" "user" 1510561243e0 1510561243e0 1510561243e0 32e0 "drwxrwxr-x" t 9079931953e0 -1)
("raad" ("`raad'") 2 "username" "user" 1508461651e0 1508461651e0 1508461651e0 32e0 "drwxrwxr-x" t 8954184911e0 -1)
(".Rhistory" ("`.Rhistory'") 1 "username" "user" 1494580258e0 1494580258e0 1503769113e0 211e0 "-rw-rw-r--" t 8708149536e0 -1)
("rsurv_test.cpp" ("`rsurv_test.cpp'") 1 "username" "user" 1508564313e0 1508564313e0 1508564313e0 725e0 "-rw-rw-r--" t 8958184296e0 -1)
("samplesize.r" ("`samplesize.r'") 1 "username" "user" 1498034323e0 1498034323e0 1503769113e0 101e0 "-rw-rw-r--" t 8707896907e0 -1)
("sas" ("`sas'") 2 "username" "user" 1509428298e0 1509428298e0 1509428298e0 28e0 "drwxr-xr-x" t 9012798673e0 -1)
("shiny" ("`shiny'") 4 "username" "user" 1497342833e0 1497342833e0 1503769118e0 51e0 "drwxrwxr-x" t 8708148884e0 -1)
("survdiff2.r" ("`survdiff2.r'") 1 "username" "user" 1493200693e0 1493200693e0 1503769113e0 1261e0 "-rw-rw-r--" t 8708149544e0 -1)
("test_lifetest.sas" ("`test_lifetest.sas'") 1 "username" "user" 1509516248e0 1509516248e0 1509516248e0 4828e0 "-rw-r--r--" t 8949505504e0 -1)
)
tramp_exit_status 0
///abe7f3a26b2281f7be9d336425348544#$
01:05:54.258040 tramp-handle-insert-directory (0) # Opening directory /plink:username@host:/opt/bee/home/username/test/...done
01:05:54.268040 tramp-do-file-attributes-with-stat (5) # file attributes with stat: /opt/bee/home/username/test/
01:05:54.268040 tramp-send-command (6) # ( (test -e /opt/bee/home/username/test/ || test -h /opt/bee/home/username/test/) && (env QUOTING_STYLE=locale \stat -c '((/////%N/////) %h %ue0 %ge0 %Xe0 %Ye0 %Ze0 %se0 /////%A///// t %ie0 -1)' /opt/bee/home/username/test/ | sed -e 's/"/\\"/g' -e 's/\/\/\/\/\//"/g') || echo nil) 2>/dev/null; echo tramp_exit_status $?
01:05:54.558037 tramp-wait-for-regexp (6) # 
(("`/opt/bee/home/username/test/'") 7 79077e0 108e0 1510797606e0 1510797606e0 1510797606e0 614e0 "drwxr-xr-x" t 8707819961e0 -1)
tramp_exit_status 0
///abe7f3a26b2281f7be9d336425348544#$
01:06:09.229890 tramp-do-file-attributes-with-stat (5) # file attributes with stat: /opt/bee/home/username/test/
01:06:09.229890 tramp-send-command (6) # ( (test -e /opt/bee/home/username/test/ || test -h /opt/bee/home/username/test/) && (env QUOTING_STYLE=locale \stat -c '((/////%N/////) %h /////%U///// /////%G///// %Xe0 %Ye0 %Ze0 %se0 /////%A///// t %ie0 -1)' /opt/bee/home/username/test/ | sed -e 's/"/\\"/g' -e 's/\/\/\/\/\//"/g') || echo nil) 2>/dev/null; echo tramp_exit_status $?
01:06:09.579887 tramp-wait-for-regexp (6) # 
(("`/opt/bee/home/username/test/'") 7 "username" "user" 1510797606e0 1510797606e0 1510797606e0 614e0 "drwxr-xr-x" t 8707819961e0 -1)
tramp_exit_status 0
///abe7f3a26b2281f7be9d336425348544#$

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

* bug#29442: dired-do-shell-command puts "start /b" in tramp dired
  2017-11-25 18:09 bug#29442: dired-do-shell-command puts "start /b" in tramp dired Shuguang Sun
@ 2017-11-26  6:03 ` Shuguang Sun
  0 siblings, 0 replies; 2+ messages in thread
From: Shuguang Sun @ 2017-11-26  6:03 UTC (permalink / raw)
  To: shuguang; +Cc: 29442

[-- Attachment #1: Type: text/plain, Size: 823 bytes --]

The shell-command works if I use the function as below.

(defun my-dired-open-execute ()
  (interactive)
  (let* ((file-name (dired-get-file-for-visit))
         (file-ext (file-name-extension file-name))
         (case-fold-search t))
    (if (file-exists-p file-name)
        (cond
         ((and (string-match "^r$" file-ext) (file-remote-p file-name))
          (let ((default-directory (or (and (eq major-mode 'dired-mode)
                                            (dired-current-directory))
                                       default-directory)))
            (shell-command
             (format "nohup /bin/apps64/software/R/R CMD BATCH --no-restore
--no-save --slave \"%s\" &"
                     (file-name-nondirectory file-name)))
            ))
         (t (w32-shell-execute "open" file-name nil 1))))))

[-- Attachment #2: Type: text/html, Size: 1173 bytes --]

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

end of thread, other threads:[~2017-11-26  6:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-25 18:09 bug#29442: dired-do-shell-command puts "start /b" in tramp dired Shuguang Sun
2017-11-26  6:03 ` Shuguang Sun

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).