This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Checking if the X Server is running
- From: Holger Krull <holger dot krull at gmx dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Mon, 01 Oct 2007 17:08:02 +0200
- Subject: Re: Checking if the X Server is running
- References: <73548.40098.qm@web27002.mail.ukl.yahoo.com>
- Reply-to: cygwin-xfree at cygwin dot com
O. Olson schrieb:
> --- Holger Krull <holger.krull@xxx.xx> ha scritto:
Teach your email program to not include the full email adress while quoting!
> #!/bin/sh
> if `ps | grep XWin > /dev/null`
I suggest using grep -i
to make it case ignoring. I found a cygwin installation that has Xwin and not XWin in the process list.
> Now I modified the above shell script to:
>
> ----------------------
> #!/bin/sh
> if `ps | grep XWin > /dev/null`
> then
> xterm -e /usr/bin/bash -l
> else
> XWin -multiwindow -clipboard -silent-dup-error
My guess is access control, try adding -ac to the xwin parameters to find out.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/