Two simple QQ about XWin
Alexander Gottwald
alexander.gottwald@s1999.tu-chemnitz.de
Thu Aug 14 12:57:00 GMT 2003
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
More information about the Cygwin-xfree
mailing list