Executing Remote Commands Problem

2 posts / 0 new
Last post
Anonymous
Executing Remote Commands Problem

Hello,

I just started using copSSH a few weeks back and it has been working very well so far on Windows 2000 and 2003 machines. My goal in using copSSH was to be able to establish a remote connection on a machine and then to fire off services on that machine that would continue to run.  This is an integration method that I'm using with an open source SOS Job Scheduler tool (http://jobscheduler.sourceforge.net/).  This was recommended by the developers of this tool.

Anyway, I can remotely connect and execute DOS commands on the boxes with the "cmd.exe /c" command just fine except for when the service in question tries to pop up an info dialog (no interaction required though).  At the point where the dialog tries to pop up, the CPU goes crazy.  If I sign into the machine and run the same command through cmd.exe, it works just fine and I do see the status dialog flash by.

Is there some GUI emulator (or other thing that attempts to translate these requests) that copSSH uses that may not be correctly handling the GUI dialog when run through a copSSH session (or open ssh)?  I have tried to test this by running NOTEPAD.EXE on the target.  I do see NOTEPAD.EXE in the task_mgr even though I cannot see it running visually.  I don't have a problem not seeing it because I really only need to run background services using this method.

 I have even gone so far as to compare all of my system variables using a copSSH sessin and a cmd.exe session and they are all the same.

 I am runing under a different shell though when I run copSSH to the other machine.  I have a custom cmd.sh that I registered my user with and it reads the registry using reg.exe and switches everything over to a windows cmd.exe shell for me (pretty slick from the guys at SOS-BERLIN).

 Here is what we use to do this.

cmd.sh (user registered to launch this as the shell.  I don't really know what this is doing other than calling get_environment to create evn.cmd.  If anyone can decipher this, I'd apprecite the lesson);

#!/bin/bash
COMMAND="$*"
if

itefix
Offline
Last seen: 12 hours 43 min ago
Joined: 01.05.2008 - 21:33
Re: Executing Remote Commands Problem

Thanks for sharing your findings with us. What you get with copssh is a remote character based shell. If you have programs firing up gui components at remote side, they will not be treated properly.

Topic locked

Release announcements