Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!ATHENA.MIT.EDU!rlk From: rlk@ATHENA.MIT.EDU (Robert L. Krawitz) Newsgroups: comp.windows.x Subject: setting DISPLAY Message-ID: <8705221719.AA07302@4-035-15> Date: Fri, 22-May-87 13:19:44 EDT Article-I.D.: 4-035-15.8705221719.AA07302 Posted: Fri May 22 13:19:44 1987 Date-Received: Sat, 23-May-87 16:20:23 EDT References: <10162@sri-spam.istc.sri.com> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 21 I have this little hack called xdsp, and some code I put in my .login file that I call xpickup. Here it is: #!/bin/sh # Usage: execute this script in your xterm line -- xterm -e xdsp xhost $* TERM=xt.$DISPLAY export TERM exec /usr/ucb/rsh $* exit # This hair unpacks the TERM variable into DISPLAY (xpickup) if (($TERM =~ xt?.*) || ($TERM =~ xt.*)) then setenv DISPLAY `echo $TERM | sed 's/xt[^.]*\.//'` set term = xterm setenv TERM xterm unsetenv LOGIN setenv NOTLOGIN 0 endif Robert^Z