X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <47137D48.5000302@cygwin.com> Date: Mon, 15 Oct 2007 10:46:32 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070505 Remi/2.0.0.0-3.fc4.remi Thunderbird/2.0.0.0 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How to remotely log in and execute a *GUI* program References: <13191124 DOT post AT talk DOT nabble DOT com> <13192157 DOT post AT talk DOT nabble DOT com> <20071013182220 DOT GB8632 AT suncomp1 DOT spk DOT agilent DOT com> <183c528b0710150618n4059118ehc8291cf6f379b144 AT mail DOT gmail DOT com> <47137B31 DOT 20002 AT free DOT fr> In-Reply-To: <47137B31.20002@free.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 cuicui wrote: > Brian Mathis a écrit : > in, >>>> >>>> Just to say that I found a partial solution, by copying the ssh >>>> login keys >>>> generated on Cygwin on the Windows box to the .ssh directory on the >>>> remote >>>> Linux box, and then executing from a local Cygwin xterm: >>>> DISPLAY=localhost:0.0 ssh -Y -C -q user AT remote-machine "command" >>>> >>>> But is there a way to do it by running a Cygwin script on the >>>> Windows box? >>> IIUUC, yes, just install the ssh server on your Cygwin/Windows box. >>> The instructions are here: >>> >>> /usr/share/doc/Cygwin/openssh.README >>> >>> Regards, >>> Gary >>> >> >> There's not need for an SSH server on the Windows box. You only need >> the client, as the login is going from Windows to Linux. >> >> To execute a script instead of xterm, just run the script instead! :) >> In your command above, forget the "DISPLAY" stuff and put whatever the >> name of the command you want to run inside "command". > > I'm recycling this thread to ask a similar question. Let's say that i > have a windows box with sshd servicable on it. > > A can remotely launch command on the win box with ssh (ssh > user AT host DOT domain DOT com "command args"). But what if the "command" is > supposed to be a graphical program (in my case a popup created with > AutoIt that display a message)? > > "command" is launched and running but nothing is displayed on the > screen, the gui application is just running in background. > > Is there any way to make this program displaying on the current windows > session? Note: in my case the ssh user is admin and the session user is > user-only. > > Any help? Reinstall 'sshd' specifying the '-i' flag to 'cygrunsrv' or edit the current service under "Administrative Tools"->"Services" and check "Allow service to interact with desktop" in the "Log On" tab of the service's "Properties". Please note that this will display the program on the server, not the client. Running X programs doesn't require this dance, though I assume you were referring to Windows apps. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/