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: Paul Henderson Subject: Re: How to determine if X is running? Date: 1996/02/14 Message-ID: <312227C8.167E@unx.dec.com>#1/1 X-Deja-AN: 140077139 references: <4fq9ke$a1v@news.res.ray.com> content-type: text/plain; charset=us-ascii organization: Digital Unix Engineering mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0 (X11; I; OSF1 X4.0 alpha) 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.