X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0	tests=BAYES_00,FREEMAIL_FROM,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <29285392.post@talk.nabble.com>
Date: Wed, 28 Jul 2010 04:20:49 -0700 (PDT)
From: saravanan_k83 <sarakuma@yahoo-inc.com>
To: cygwin@cygwin.com
Subject: Re: opening notepad.exe from linux to window via ssh runs in 	background
In-Reply-To: <4C4F03F9.9040500@bopp.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
References: <29277832.post@talk.nabble.com> <AANLkTikC+fKDYF_0_zB8R2qcZoHbousOy91dW37Uw6Qg@mail.gmail.com> <4C4F03F9.9040500@bopp.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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


Hi,

It was fixed after doing the following setup :

Open control panel=3D> Administrative Tools=3D>Computer Management=3D>Servi=
ces,
lookup the sshd service, right click=3D>properties=3D>log on, and check the
checkbox for =E2=80=9CAllow service to interact with desktop=E2=80=9D, and =
restart the
service.

thanks
Saravana


Jeremy Bopp-3 wrote:
>=20
> On 7/27/2010 10:55 AM, Ryan McLeod wrote:
>> On Tue, Jul 27, 2010 at 11:51 AM, saravanan_k83 <sarakuma@yahoo-inc.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.
>>=20
>> Ryan
>=20
> 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.
>=20
> 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.
>=20
> This issue has cropped up in the mailing list before with a fair bit of
> discussion.  Search the mailing list archives for details.
>=20
> -Jeremy
>=20
> --
> 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
>=20
>=20
>=20

--=20
View this message in context: http://old.nabble.com/opening-notepad.exe-fro=
m-linux-to-window-via-ssh-runs-in-background-tp29277832p29285392.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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

