delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,TW_JB |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <51418DCA.1070605@gmx.de> |
Date: | Thu, 14 Mar 2013 09:43:54 +0100 |
From: | Herbert Stocker <hersto AT gmx DOT de> |
User-Agent: | Mozilla/5.0 (Windows NT 5.1; 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: | <CAGLq9wgU8FjZkv94RQeJM4TTWjeLy1c73iNbmZbb0UaZ67p_Mw AT mail DOT gmail DOT com> <51408F93 DOT 9010800 AT cygwin DOT com> |
In-Reply-To: | <51408F93.9010800@cygwin.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi Gokulnath, 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? 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 GUI, this script runs in the context of your GUI session and therefore can open windows. In my case i use the screen utility to have that script run without any mintty window or DOS box open all the time. Now when you log-in via ssh from the Linux box, instead of running the dos-script directly, you send some signal to the script in your GUI session, that tells it to run the dos-script. 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. HTH, Herbert -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |