delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:cc:reply-to | |
:message-id:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=iW6Jlx2KNquoAly/ | |
ZvfDEUCWL3EslHAVAGk4AO4ygj/eLndd3aI9v0f+2GukfdfS9Hcitzjnden25UHt | |
KSaByG411BYv2/phRk6qrns5RUDCFEIEPvDWA8r42WWJDH1DHuBb0aT2N4NT0fPC | |
8y04K5JzQN0dsjd4kB8ANbmozCQ= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:cc:reply-to | |
:message-id:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=F3xjAX3qiUboRiyPQ1LOdA | |
mJR8A=; b=VdgN5I3HLOueCWJyJj8d+W26vehduvFvXAAWalBIokh90EoP18Nu2B | |
MXHVqa+DuSUcG6YVyqdTB1tiL8kjrHAsJYfget1bH1+cioP+3CRmHuCtrnPwfv1B | |
6TPF/BTnFiMfrly3KIJh3Qq09Sxbs5xliLdls2LrxDlPGGry2iKlQ= | |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 |
X-HELO: | out1-smtp.messagingengine.com |
Subject: | Re: How to run xinit without first entering a cygwin terminal |
To: | cygwin AT cygwin DOT com |
References: | <CAJACTudb8DzgcpxEF-G730eBptRV8ELc-+x6s9CMhcgwi1Vfxg AT mail DOT gmail DOT com> <56321DC3 DOT 2030704 AT dronecode DOT org DOT uk> <CAJACTuf2pmPoRiw8BoNc0PhtVReuRmeYfCqdX3LQyLrpdoDM3Q AT mail DOT gmail DOT com> |
From: | Jon Turney <jon DOT turney AT dronecode DOT org DOT uk> |
Cc: | Xuehan Xu <xxhdx1985126 AT gmail DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
Message-ID: | <5634A9D3.1010808@dronecode.org.uk> |
Date: | Sat, 31 Oct 2015 11:45:23 +0000 |
User-Agent: | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <CAJACTuf2pmPoRiw8BoNc0PhtVReuRmeYfCqdX3LQyLrpdoDM3Q@mail.gmail.com> |
On 30/10/2015 00:40, Xuehan Xu wrote: > Thanks for your reply:-) > > I followed your advice, now it seems that rdesktop is running, but the > window that xinit showed was just plain black. rdesktop is supposed to > be a remote desktop client that runs on linux and connect to a windows > remote desktop. When I use the command "/usr/bin/xinit.exe > ./rdesktop/rdesktop.exe -f 192.168.1.79" in a cygwin terminal, it can > show the desktop of 192.168.1.79. > > Could this be due to the same reason that startx can't show the > cygwin desktop? What should I do? Thanks;-) Hmm... so when I try this, it seems it only works when I arrange for rdesktop's stderr to go somewhere, e.g. C:\cygwin64\bin\run.exe -quote /usr/bin/bash.exe -l -c "/usr/bin/xinit /usr/bin/rdesktop -f byron >/var/log/xwin/rdesktop_session.log 2>&1" If that's really necessary, perhaps that's a bug in run. (You do know that you could achieve a similar effect with 'mstsc /f /v:byron' ?) > On 29 October 2015 at 21:23, Jon Turney wrote: >> On 29/10/2015 06:25, Xuehan Xu wrote: >>> >>> Hi, everyone >>> >>> I'm trying to run xinit.exe to start a GUI program in a windows cmd >>> prompt. The command I run: >>> >>> "c:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/xinit.exe >>> /home/Administrator/rdesktop.exe -f 192.168.1.79 >>> >>> But, it seems that rdesktop.exe isn't running, the window was just >>> showing a terminal prompt. >> >> >> Using the command lines from the start menu items created for the xinit >> package as a template (see [1]), I think you need something like: >> >> c:\cygwin\bin\run.exe -quote /usr/bin/bash.exe -l -c "/usr/bin/xinit.exe >> /home/Administrator/rdesktop.exe -f 192.168.1.79" >> >> The command string being given to bash -c needs quoting, otherwise >> subsequent words are assumed to be parameters to that command. This reason is wrong. I should have said something like "needs quoting to get correctly passed to bash" since I think the issue is not in bash, but in run. >> run needs to be given the -quote option to protect those quotes. >> >> [1] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-command-line-args -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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 |