From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8750 invoked by alias); 30 Oct 2003 04:16:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8694 invoked from network); 30 Oct 2003 04:16:36 -0000 Received: from unknown (HELO ns2.prospeed.net) (12.46.111.140) by sources.redhat.com with SMTP; 30 Oct 2003 04:16:36 -0000 Received: from enterprise-e.cygwin.com ([12.46.110.44]) by ns2.prospeed.net (8.12.10/8.12.8) with ESMTP id h9U4QUA0014483; Wed, 29 Oct 2003 23:26:30 -0500 Reply-To: Cygwin List Message-Id: <6.0.0.22.0.20031029230427.03c2aa38@127.0.0.1> X-Sender: Date: Thu, 30 Oct 2003 08:11:00 -0000 To: "Rob S.i.k.l.o.s." , From: Larry Hall Subject: Re: launching a windows program remotely using ssh In-Reply-To: <004101c39cd2$bd2d8c90$6c0aa8c0@adexainc.com> References: <003301c39cc1$3e7dd140$6c0aa8c0@adexainc.com> <6.0.0.22.0.20031027160146.02ad5bc8@127.0.0.1> <004101c39cd2$bd2d8c90$6c0aa8c0@adexainc.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2003-10/txt/msg01751.txt.bz2 At 04:39 PM 10/27/2003, Rob S.i.k.l.o.s. you wrote: >From: "Larry Hall" > >> At 02:33 PM 10/27/2003, Rob S.i.k.l.o.s. you wrote: >> >Hello, >> > >> >I have an ssh (cygwin) server running on a windows 2000 machine, and I >want >> >to start a windows program on this machine using a remote command. >> > >> >My problem is that I can't get the window of the program to display >> >anywhere. >> > >> >For example: >> >I run something like "ssh user@computer /c/winnt/system32/notepad.exe" >> > >> >When I ran this command, I was expecting to see a notepad window open on >> >"computer", but none appeared. Is there any way to accomplish this? >> >The process *did* start, because it was listed in the task manager. >> >> See the "--interactive" flag of cygrunsrv. You need to install ssh (or >> any service) with this if you want the service to interact with the >> "desktop" > >right - that totally works. Thanks a lot. > >Now, is there any way of having sshd run being able to interact with the >desktop, but without having an empty console window hanging around? > >I guess that was probably the point of not allowing sshd to interact with >the desktop in the first place, huh? Right. ;-) Since it's a console program, if you allow it to interact with the desktop, it's going to create a console for itself. I suppose you could fiddle with running 'cygstart' or 'run' to try to get it to hide the console. That's without fiddling with sshd code that is. I haven't really investigated any of these options but it's just my way of saying that it is quite possible to get a console program to hide the console window. See CreateProcess()/STARTUPINFO documentation for the details on the internals. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/