delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/27/12:06:38

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4C4F03F9.9040500@bopp.net>
Date: Tue, 27 Jul 2010 11:06:17 -0500
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: opening notepad.exe from linux to window via ssh runs in background
References: <29277832 DOT post AT talk DOT nabble DOT com> <AANLkTikC+fKDYF_0_zB8R2qcZoHbousOy91dW37Uw6Qg AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTikC+fKDYF_0_zB8R2qcZoHbousOy91dW37Uw6Qg@mail.gmail.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

On 7/27/2010 10:55 AM, Ryan McLeod wrote:
> On Tue, Jul 27, 2010 at 11:51 AM, saravanan_k83 <sarakuma AT yahoo-inc DOT com> wrote:
>>
>> Hi,
>>
>> I have setup a ssh connection between linux box and windows using cygwin, I
>> issued the java code to start notepad on windows. It actually starts notepad
>> in background. i am not able to see it in foreground.
>>
>> javacode:
>> Runtime.getRuntime().exec("notepad.exe")
>>
>> I even tried setting CYGWIN sshd services "Allow service to interact with
>> desktop" checked. still it is not showing up notepad screen.
>>
>> any idea how to fix this?
>
> You probably need to enable X11 forwarding to forward the GUI in the
> ssh client and server.
> 
> Ryan

Notepad is not an X client application, so no amount of X11 mischief
will affect it at all.  That is probably not what the OP wants anyway.

I want to think that the ability to spawn GUI processes from an SSH
session stopped working for Windows Vista and above.  Earlier Windows
versions can supposedly be made to do it by granting the desktop
interaction right to the account used to run the SSH server, but I
haven't tried to do that.

This issue has cropped up in the mailing list before with a fair bit of
discussion.  Search the mailing list archives for details.

-Jeremy

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019