home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.windows.x
- Subject: Re: setting DISPLAY env variable
- Date: 22 Dec 1992 01:20:36 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 20
- Message-ID: <1h5qh4INNc7i@early-bird.think.com>
- References: <BzCzvA.42s@constellation.ecn.uoknor.edu> <1h4bp2INNi8u@sol.deakin.OZ.AU> <1992Dec21.130253.1110@ericsson.se>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <1992Dec21.130253.1110@ericsson.se> etxmesa@eos.ericsson.se (Michael Salmon) writes:
- ># Set the default X Windows server name - set to the name of the host
- ># the user logged in from, unless it was the terminal server (tserver).
- >set displayhost=`who am i | sed -e 's/.*(//' -e 's/).*$//' -e 's/\.chem\.utoronto\.ca$//'`
-
- Isn't it a bit presumptuous to assume that the user logged in from the X
- server? In the case of X terminal users, this is extremely unlikely (they
- usually have telnet clients, but one normally logs in using XDM). And if
- the user does recursive telnets, the DISPLAY won't be propogated correctly.
-
- I've heard of people solving the problem by using rlogin, which propagates
- the TERM environment variable automatically. They use a script that first
- concatenates the DISPLAY environment variable onto the TERM variable and
- then invokes rlogin. The .login file on the destination then extracts the
- DISPLAY from the TERM variable.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-