A question I've been puzzling over for a while is:
How can I pass the DISPLAY environment variable when a user
logs into another machine?
We run a small Unix network here, and everybody is logging in
from a local Unix machine (running X) to one of the main machines
(with all the processing power). Unfortunately,
the setting for the DISPLAY environment variable is not working,
we're currently going on a grep of the `who` command using the
tty as the search key to get the source machine.
But a bug in Solaris 2.3 (or an unapplied patch... Any ideas?) means
that when a user logs out, the tty is still attached to their id,
even if somebody else later uses it. Its hit and miss that, after
the machine has been up for a while, that the tty information from
the who command is correct.
Add to this that when a shell is fired up from the log in, there is
no hostname attached to the tty in the who command, and some users
insist on setting their DISPLAY var within the .cshrc file and not
So, I was wondering, what tactics to you employ to pass the DISPLAY environment
variable around between machines? Is there some easy method that I'm missing?
I've scoured the FAQ and other sources to no avail (or I'm going blind and
have missed it), so maybe someone would care to enlighten me.
If anybody is curious themselves, let me know and I'll pass on a summary
of the information I find out. I'll post it here as well, like a good
usenet reader... ;-)
Thanks in advance,
Richard Leyton, AMS Management Systems Deutschland GmbH,
Am Seestern 1, 40547 Duesseldorf, Germany.
Opinions are my own, and not representative of AMS.