Dear Monks
I am trying to write a script that acts as a command line program when X is not running, but has a GUI when it sees that X is up.
The only way I can think of doing this is to maybe look at TCP/IP ports (or something like that) to detect if X is up or not.
Any ideas about how I can do this? I have no idea where to start!
Thanks, fellow monks...
In reply to Checking X server status by mr_dont
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |