This is the mail archive of the
mailing list for the Cygwin project.
Re: How to run xinit without first entering a cygwin terminal
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin at cygwin dot com
- Cc: Xuehan Xu <xxhdx1985126 at gmail dot com>
- Date: Thu, 29 Oct 2015 13:23:15 +0000
- Subject: Re: How to run xinit without first entering a cygwin terminal
- Authentication-results: sourceware.org; auth=none
- References: <CAJACTudb8DzgcpxEF-G730eBptRV8ELc-+x6s9CMhcgwi1Vfxg at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
On 29/10/2015 06:25, Xuehan Xu wrote:
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 ), 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.
Volunteer Cygwin/X X Server maintainer
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple