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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=AV Fg5TKIuOAwtOpZZ6LOqFHy2WgIg7kpGPHJLaMBAGe712z2bNOeuGf9V88T5dwvLQ MyyMJzxRCU0qaBmugKFM/7KBixLjCklALcbUMOu0PWSSFUX0rM1E3BJ/OWy6CGQU mDJnI0DEoYxVnzC0m6W2JsEBtkZa70DWq03vmLmlo= 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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=HY1KaNpJ g4rVJEQcu+qV9s8waeU=; b=MNnqpWq/XxufvSqMz3qfrSDbcfetFzuaD9HclHZQ 8x6XP7EYoP4jXb+vVVObW6Zj8gA5Ym2nxUAkFJikV4+3PbxeKIDStjiR8e5E/9+t tfOZ5GNAwlDK63HOyinehqR01toUWk/25H0HYkIAkhTYdLWjpeJX+m60IhCRv6rl wXg= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f177.google.com MIME-Version: 1.0 X-Received: by 10.194.2.5 with SMTP id 5mr6186522wjq.153.1446165654329; Thu, 29 Oct 2015 17:40:54 -0700 (PDT) In-Reply-To: <56321DC3.2030704@dronecode.org.uk> References: <56321DC3 DOT 2030704 AT dronecode DOT org DOT uk> Date: Fri, 30 Oct 2015 08:40:54 +0800 Message-ID: Subject: Re: How to run xinit without first entering a cygwin terminal From: Xuehan Xu To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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;-) 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. > > 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