X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=1.3 required=5.0	tests=AWL,BAYES_20,BOTNET,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RCVD_IN_HOSTKARMA_YE,TW_JB
X-Spam-Check-By: sourceware.org
Message-id: <51408F93.9010800@cygwin.com>
Date: Wed, 13 Mar 2013 10:39:15 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: Run windows script remotely using Cygwin?
References: <CAGLq9wgU8FjZkv94RQeJM4TTWjeLy1c73iNbmZbb0UaZ67p_Mw@mail.gmail.com>
In-reply-to: <CAGLq9wgU8FjZkv94RQeJM4TTWjeLy1c73iNbmZbb0UaZ67p_Mw@mail.gmail.com>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

