This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Two simple QQ about XWin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]