![]() |
Check wether a X server is running and ok
Basically I need a more reliable way to check wether a X server is ok than using ps/pgrep.
Is there a (standard) application which connects to a X server and exits again giving me the status? Something like "xterm -e exit". |
# xset -q
( q - for query ) It works good for me. The only case it is missing is the shortage of file descriptors. |
what about ....
Code:
export DISPLAY=":0.0" |
Thanks, both answers answer my question and I appreciate your help.
|
| All times are GMT -5. The time now is 07:51 PM. |