X-Recipient: archive-cygwin AT delorie DOT 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: cygwin AT cygwin DOT 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 AT cygwin DOT com Subject: Re: Run windows script remotely using Cygwin? References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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