On Thu, Jul 03, 2008 at 04:36:20PM +0100, Daniel Bye wrote:
> On Wed, Jul 02, 2008 at 07:13:50PM -0700, Gary Kline wrote:
> >
> > 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
On Wed, Jul 02, 2008 at 07:13:50PM -0700, Gary Kline wrote:
>
> 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"
> exi
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?
--