Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jul 2008 19:13:50 -0700
From:      Gary Kline <kline@thought.org>
To:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   to shell (and  X window System) wizards.
Message-ID:  <20080703021344.GA73949@thought.org>

next in thread | raw e-mail | index | archive | help

	would this works, say in .zlogin, to  say that X is up:

	if [ -e /tmp/.X11-unix/X0 ]
	then
		echo "X is up."
		exit 0;
	else
		echo "No X yet"
		exit 1;
	fi

	or is there something more clever?

-- 
  Gary Kline  kline@thought.org   www.thought.org  Public Service Unix
        http://jottings.thought.org   http://transfinite.thought.org





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