Path: utzoo!censor!geac!jtsv16!uunet!ginosko!usc!bloom-beacon!THINK.COM!rlk From: rlk@THINK.COM (Robert L. Krawitz) Newsgroups: comp.windows.x Subject: DISPLAY environment variable from login(1) Message-ID: <8909071316.AA08128@regin.think.com> Date: 7 Sep 89 13:16:03 GMT References: <2273@marvin.Solbourne.COM> Organization: The Internet Lines: 23 Passing DISPLAY across an rlogin isn't very hard; it simply requires overloading TERM. I use this script (which I call xdsp) to pass it across: #!/bin/sh TERM=xtu.$XDISPLAY export TERM exec rsh $* The following code in my .login picks it up: if (($TERM =~ xt?.*) || ($TERM =~ xt.*)) then setenv DISPLAY `echo $TERM | sed 's/xt[^.]*\.//'` set term = xterm setenv TERM xterm endif Under X10 I didn't need the sed; I could do everything with the shell. Under X11 I need the sed to handle the foo:0.0 syntax. ames >>>>>>>>> | Robert Krawitz 245 First St. bloom-beacon > |think!rlk Cambridge, MA 02142 harvard >>>>>> . Thinking Machines Corp. (617)876-1111