This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Two simple QQ about XWin
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com, fergus at bonhard dot uklinux dot net
- Date: Thu, 14 Aug 2003 14:57:32 +0200 (MEST)
- Subject: Re: Two simple QQ about XWin
- References: <000701c36262$202c5840$6fc82486@medschool.dundee.ac.uk>
- Reply-to: cygwin-xfree at cygwin dot com
On Thu, 14 Aug 2003 fergus@bonhard.uklinux.net wrote:
> Q2. I've compared
>
> $ set > vars.list
>
> both when XWin is running and when not, expecting a small difference in env
> vars (or something). But all that has changed are PIDs. I want to be able to
> query the O/S to ask whether X is running or not. Is there a way of doing
> this, please? Apart from say ps -a | grep XWin. Thank you!
xdpyinfo >/dev/null 2>&1 || echo false
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723