From owner-freebsd-questions@FreeBSD.ORG Mon Aug 30 21:29:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B497C16A4CE for ; Mon, 30 Aug 2004 21:29:33 +0000 (GMT) Received: from sccimhc92.asp.att.net (sccimhc92.asp.att.net [63.240.76.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 442E143D2D for ; Mon, 30 Aug 2004 21:29:33 +0000 (GMT) (envelope-from FreeBSD@insightbb.com) Received: from [192.168.1.239] (12-202-28-183.client.insightbb.com[12.202.28.183]) by sccimhc92.asp.att.net (sccimhc92) with ESMTP id <20040830212932i9200919u0e>; Mon, 30 Aug 2004 21:29:32 +0000 From: Steven Friedrich To: "FreeBSD-Questions" Date: Mon, 30 Aug 2004 17:29:31 -0400 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200408301729.31926.FreeBSD@InsightBB.com> Subject: determine X windows version from command line X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 21:29:33 -0000 I've been massaging UberMon for SuperKaramba for my FreeBSD systems. I'd like to be able to run a command that will yield which X window system is installed and what version. I've done it with something like startx -- -version, but this is problematic if X windows is running (which is the scenario I need it to work in). Even then, I'd have to grep for "XFree86 Version" so it isn't a general solution that would work for systems already switched to x-org. Any deas?