* How to determine if X is running?
@ 1996-02-13 5:00 Scott Tringali
1996-02-14 5:00 ` Paul Henderson
0 siblings, 1 reply; 3+ messages in thread
From: Scott Tringali @ 1996-02-13 5:00 UTC (permalink / raw)
Is there any REALIABLE way to determine if X is running on a given machine
within a script, other than the typical ps/grep/awk garbage? There has to be a
better way.
--
Scott J. Tringali, tringali@ultranet.com
Raytheon Electronic Systems, International Air Traffic Control
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to determine if X is running?
1996-02-13 5:00 How to determine if X is running? Scott Tringali
@ 1996-02-14 5:00 ` Paul Henderson
1996-02-15 5:00 ` Dan Pop
0 siblings, 1 reply; 3+ messages in thread
From: Paul Henderson @ 1996-02-14 5:00 UTC (permalink / raw)
Scott Tringali wrote:
>
> Is there any REALIABLE way to determine if X is running on a given machine
You might want to test the existence of the /tmp/.X11-unix directory in
which X creates a socket (file). It does this once it has established a
reliable connection.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to determine if X is running?
1996-02-14 5:00 ` Paul Henderson
@ 1996-02-15 5:00 ` Dan Pop
0 siblings, 0 replies; 3+ messages in thread
From: Dan Pop @ 1996-02-15 5:00 UTC (permalink / raw)
In <312227C8.167E@unx.dec.com> henderson@unx.dec.com (Paul Henderson) writes:
>Scott Tringali wrote:
>>
>> Is there any REALIABLE way to determine if X is running on a given machine
>
>You might want to test the existence of the /tmp/.X11-unix directory in
>which X creates a socket (file). It does this once it has established a
>reliable connection.
And it never removes the socket (and the directory), so this method is
useless: all it shows is that X has run at least once on that system.
afal11 > uname -a
OSF1 afal11 V3.2 148 alpha
afal11 > ps auxww|grep X11/X
iss 15878 0.0 0.1 1.23M 136K ttyqb S + 16:44:57 0:00.01 grep X11/X
afal11 > ls -l /tmp/.X11-unix
total 0
srwxrwxrwx 1 wds system 0 Aug 11 1995 X0
^^^^^^^^^^^^
Dan
--
Dan Pop
CERN, CN Division
Email: danpop@mail.cern.ch
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-02-15 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-13 5:00 How to determine if X is running? Scott Tringali
1996-02-14 5:00 ` Paul Henderson
1996-02-15 5:00 ` Dan Pop
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox