home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
- From: barmar@think.com (Barry Margolin)
- Newsgroups: fj.mail-lists.x-window
- Subject: Re: setting DISPLAY env variable
- Message-ID: <1992Dec22.025634.2858@sm.sony.co.jp>
- Date: 22 Dec 92 02:56:34 GMT
- Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
- Distribution: fj
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 26
- Approved: michael@sm.sony.co.jp
-
- Date: 22 Dec 1992 01:20:36 GMT
- Message-Id: <1h5qh4INNc7i@early-bird.think.com>
- Newsgroups: comp.windows.x
- References: <BzCzvA.42s@constellation.ecn.uoknor.edu>, <1h4bp2INNi8u@sol.deakin.OZ.AU>, <1992Dec21.130253.1110@ericsson.se>
- Sender: xpert-request@expo.lcs.mit.edu
-
- 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
-