Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: danpop@mail.cern.ch (Dan Pop)
Subject: Re: How to determine if X is running?
Date: 1996/02/15	[thread overview]
Message-ID: <danpop.824399644@rscernix> (raw)
In-Reply-To: 312227C8.167E@unx.dec.com

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



      reply	other threads:[~1996-02-15  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox