This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Run windows script remotely using Cygwin?


On 3/13/2013 3:30 AM, Gokulnath Arjunan wrote:
Hi,

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 this?

Allowing this is controlled by Windows, not Cygwin (though there is a switch, -i, on cygrunsrv which toggles this on for a service being installed). But Windows severely limits the ability to do this post-XP. So, if you're on XP, you may have some luck setting this flag in Windows and getting it to work. Otherwise, there's no easy way to make this work. If the need is just to see the output of the script, perhaps redirecting it to a file would be an alternative.


-- Larry

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]