mr_dont has asked for the wisdom of the Perl Monks concerning the following question:
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking X server status
by bikeNomad (Priest) on Jun 25, 2001 at 23:52 UTC | |
|
Re: Checking X server status
by the_slycer (Chaplain) on Jun 25, 2001 at 23:47 UTC | |
by bikeNomad (Priest) on Jun 26, 2001 at 00:53 UTC | |
by mr_dont (Beadle) on Jun 26, 2001 at 00:35 UTC | |
|
Re: Checking X server status
by DrSax (Sexton) on Jun 25, 2001 at 23:32 UTC |