Forums -> freeSSHd - General -> Execute remote command? |
Reply |
New topic
|
|
soft_guy
Postings: 1
Newcomer
|
|
03-08-2007 16:52 |
Hi. I want to execute a remote command on my Windows computer using freeSSHd. On my unix boxes I can do this by a command like: ssh me@mybox 'ls' This results in the ls command being executed and the results printed in my console. So I tried: ssh me@myWindowsBox 'dir' and I got this result: "Unable to execute command or shell on remote system: Failed to Execute process." The reason I want to do this is that I plan to have a script from a unix box that executes a script on the Windows box to build some software that has to be built on Windows. Am I doing something wrong, have the software configured wrong, or is this not a supported feature? I'd really like to be able to do this and redirect the output of the build script into a file on my unix box. Thanks in advance for any help.
|
Reply with quote |
|
freesshd
Your main contact
Postings: 936
Administrator
|
|
03-08-2007 20:34 |
Hi soft_guy. The problem is that 'dir' isn't an executable, it's a command interpreted by Windows command shell "cmd.exe". But, "cmd.exe" supports /c switch that carries out the command and return its output. So, the proper syntax is: ssh me@myWindowsBox 'cmd /c dir' Regards
|
Reply with quote |
| |
|
|
TimPe
Postings: 2
Newcomer
|
|
29-11-2007 14:35 |
Hello, i am running freeSSHD Version 1.2.0 on a Windows Server 2003, SP2, x64 Box. I got the same intention like soft_guy. I have tried: ssh tim@myWindowsBox 'cmd /c dir' response is: No console window found! Unable to emulate VT100 terminal. Unable to execute command or shell on remote system: Failed to Execute process. What can i do?
|
Reply with quote |
|
TimPe
Postings: 2
Newcomer
|
|
29-11-2007 14:50 |
Ok, that was easy. simple uncheck freeSSHD settings->SSH->Use new console engine
|
Reply with quote |
|
needHelp
Anonymous
|
|
30-06-2008 17:13 |
1. i am getting the same error message "could not emulate VT100 terminal" from time to time. what is this error about? when does ist occur? what can be done to fix it? 2. where is a description to the "Use new console engine"-checkbox? what does this mean? thanks a lot
|
Reply with quote |
| |
|
|