From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bb0e9d98a4bbff1f X-Google-Attributes: gidfee84,public From: danpop@mail.cern.ch (Dan Pop) Subject: Re: How to determine if X is running? Date: 1996/02/15 Message-ID: #1/1 X-Deja-AN: 139630020 references: <4fq9ke$a1v@news.res.ray.com> <312227C8.167E@unx.dec.com> organization: CERN European Lab for Particle Physics newsgroups: comp.unix.osf.osf1 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