Run windows script remotely using Cygwin?
Thu Mar 14 08:44:00 GMT 2013
On 3/13/2013 3:30 AM, Gokulnath Arjunan wrote:
> Below is my setup.
> Windows servers 2008 which is running some jboss applications.
> I have Cygwin installed with SSH setup
> I can login to windows server from any other linux machine using ssh.
> Use case: I am able to run the dos scripts using cygwin on the machine
> and it is opening the dos command window (process window which runs
> jboss application)
> I am able to run the same dos script from remote
> machine (linux) and it is triggering the process in the background (i
> cannot see process windows on windows machines)
> Requirement: I wanted to run the dos script remotely but i need to
> open the process window instead of background process.
> How can i achieve this using Cygwin? Do i need additional plugin for
i think i had a similar problem and solved it by using the screen utility.
If you have a little script started automatically when you log-in to the
script runs in the context of your GUI session and therefore can open
In my case i use the screen utility to have that script run without any
or DOS box open all the time.
Now when you log-in via ssh from the Linux box, instead of running the
directly, you send some signal to the script in your GUI session, that
tells it to run
With 'signal' i do not necessarily mean the kill command, but probably some
other means of IPC. E.g. a pipe file, or just touching a certain file
from the ssh
session (touch command), so that the script in the GUI session knows, that
when this file exists, it should run the dos-script and delete that file.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin