Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2001 15:51:12 -0700
From:      John Merryweather Cooper <jmcoopr@webmail.bmi.net>
To:        "Christopher W . Aiken" <cwaiken@icubed.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Script Question
Message-ID:  <20010601155112.A532@johncoop>
In-Reply-To: <20010601175909.G697-100000@bigdaddy.localdomain>; from cwaiken@icubed.com on Fri, Jun 01, 2001 at 15:00:11 -0700
References:  <20010601175909.G697-100000@bigdaddy.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2001.06.01 15:00 Christopher W. Aiken wrote:
> 
> What can I check in a tcsh script to see if X is running?
> 
> 
> -=[cwa]=-
> FreeBSD 4.2
> 
The DISPLAY environment variable (usually only set when X is running)
would  be a good choice.  Checking the TERM variable for an xterm
variant might also work (sometimes).

jmc


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010601155112.A532>