From owner-freebsd-questions Fri Jun 1 15:51:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.bmi.net (smtp.bmi.net [204.57.191.31]) by hub.freebsd.org (Postfix) with ESMTP id 0B1F737B424 for ; Fri, 1 Jun 2001 15:51:24 -0700 (PDT) (envelope-from jmcoopr@webmail.bmi.net) Received: from smtp.bmi.net (dsl-154.bmi.net [207.173.60.230]) by smtp.bmi.net (Pro-8.9.3/Pro-8.9.3) with SMTP id PAA15539; Fri, 1 Jun 2001 15:51:12 -0700 Date: Fri, 1 Jun 2001 15:51:12 -0700 From: John Merryweather Cooper To: "Christopher W . Aiken" Cc: FreeBSD Questions Subject: Re: Script Question Message-ID: <20010601155112.A532@johncoop> Reply-To: FreeBSD-QUESTIONS References: <20010601175909.G697-100000@bigdaddy.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <20010601175909.G697-100000@bigdaddy.localdomain>; from cwaiken@icubed.com on Fri, Jun 01, 2001 at 15:00:11 -0700 X-Mailer: Balsa 1.1.4 Lines: 13 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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