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: Sun, 30 Sep 2007 19:34:51 +0200
- Subject: Re: Checking if the X Server is running
- References: <424716.65789.qm@web27007.mail.ukl.yahoo.com>
- Reply-to: cygwin-xfree at cygwin dot com
O. Olson schrieb:
> Is there any way of checking if the X Server is
> currently running? Because if you try this again, it
> gives you âA fatal errorâ â which does not crash your
> computer â but is a bit annoying to me.
>
There probably is a more elegant solution but doing
ps |grep Xwin >/dev/null || run Xwin -your options here
will only start Xwin if it is not running already.
(Assuming you will only start one Xwin)
--
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/