[ale] How to tell if X is up?

Dave Brooks dbrooks at comstar.net
Wed Jul 21 14:52:42 EDT 1999


Yup.  Do this:

elysium:[~]% ps aux | grep X
root     21976  1.0 16.3 24720 20900 ?       S    Jul20  13:48
/usr/bin/X11/X -a
dbrooks  24198  0.0  0.3  1152  440 pts/2    S    14:51   0:00 grep X






linuxhat at mailandnews.com wrote:
> 
> Is there a good way to tell if the X server is up on the local machine?
> We tried trapping the error on opening the display, but when we did
> that, one of the routines called exit() instead of just returning an
> error... more details if necessary...
> 
> -- Glenn
> linuxhat at mailandnews.com
> "but Julius, you s'pose t'know everything!"
> "I do, but I don' know that!"  -- Brother Dave Gardener

--
David A. Brooks
ComStar Communications, Inc.
voice : 770-485-6029
pager : 770-379-2333
:wq






More information about the Ale mailing list