From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97034 invoked by alias); 29 Oct 2015 13:23:24 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 97016 invoked by uid 89); 29 Oct 2015 13:23:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: out4-smtp.messagingengine.com Received: from out4-smtp.messagingengine.com (HELO out4-smtp.messagingengine.com) (66.111.4.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 29 Oct 2015 13:23:20 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 507D52053E for ; Thu, 29 Oct 2015 09:23:17 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 29 Oct 2015 09:23:17 -0400 Received: from [192.168.1.102] (host86-141-129-230.range86-141.btcentralplus.com [86.141.129.230]) by mail.messagingengine.com (Postfix) with ESMTPA id D67CCC00013; Thu, 29 Oct 2015 09:23:16 -0400 (EDT) Subject: Re: How to run xinit without first entering a cygwin terminal To: cygwin@cygwin.com References: Cc: Xuehan Xu Reply-To: cygwin@cygwin.com From: Jon Turney Message-ID: <56321DC3.2030704@dronecode.org.uk> Date: Thu, 29 Oct 2015 16:13:00 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-10/txt/msg00535.txt.bz2 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