SUMMARY-2: openwin problem

From: Okan OKCU (
Date: Thu Jun 15 1995 - 15:28:44 CDT

This is the second summary for my openwin problem.
My original message was as follows:
> Hi!
> My problem is as follows: When I run openwin, evething seems good
> for a while, but then when i try to open a window, the following
> message appears:
> unable to open display :0.0.
> The DISPLAY environment variable is :0.0

In my first summary I said that DISPLAY can be set to hostname:0.0
instead of :0.0. But Birger A. Wathne <> &
Steve Mowbray <> said that it is not a good idea to set
DISPLAY to hostname:0.0, because then all X traffic is directed through the
network layers. But when the :0.0 version is used, the socket in the /tmp
directory is used. While cleaning the /tmp directory the followings
can be used:

(from Steve Mowbray <

find /tmp -type f -mtime +5 -exec rm {} \;

or (from Jochen Bern <bern@TI.Uni-Trier.DE>)

find /tmp -xdev \( -type f -o -type l \) \! -user root -atime +7
-exec rm -f {} \;

( means: don't skip onto other Partition, only handle Files and Links,
don't touch root Stuff, remove if not accessed in 7 Days.)

and finally John Martin <> sent me a good script to set

DISPLAY=`who am i | awk '{ print $6 }' | sed -e 's/(//' -e 's/)//'`:0.0

this sets DISPLAY to hostname:0.0 when needed, otherwise sets it to :0.0


This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:26 CDT