Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: thy.workstations.ima.auc.dk: tdn set sender to tdn AT vrmedialab DOT dk using -f From: Thomas Dorf Nielsen MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16419.44027.916322.296462@thy.workstations.ima.auc.dk> Date: Fri, 6 Feb 2004 16:00:11 +0100 (CET) To: cygwin AT cygwin DOT com Subject: Executing windows commands via ssh X-IsSubscribed: yes Hi! I've been through page after page without finding the answer, so now I try here. We are trying to find a way to execute commands remotely on a Windows XP box. We were hoping to be able to install a SSH server (sshd) and then login and execute. But only partial success followed... We can install a SSH server and login to it from another PC using eg. PuTTY, no problem. We get into the remote machine and can do dir, cd, etc. But if we try executing other programs, nothing seems to happen. For instance we have found a program that can change the resolution of the Windows screen, ResSwitch. It can be called from a DOS prompt like this: ---------- C:\>ResSwitch 800 600 32 60 ---------- If it is run without the right number of parameters ResSwitch displays a requester explaining it's usage. If we run the same command via SSH nothing happens! The prompt just returns and nothing is changed: ---------- C:\>ResSwitch 800 600 32 60 C:\> ---------- This is strange, as the "ResSwitch.exe" *is* found. This we believe because we get an error if we type something non-existant: ---------- C:\>thingy 'thingy' is not recognized as an internal or external command, operable program or batch file. ---------- So what to do? Do we need to tell the Windows environment to allow the SSH login to manipulate the Windows settings, some kind of "xhost +"? If this *is* in the documentation somewhere please forgive me and direct my attention in the right direction! :-) /dorf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/