Path: utzoo!attcan!uunet!snorkelwacker!bu.edu!purdue!iuvax!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!carroll From: carroll@m.cs.uiuc.edu Newsgroups: comp.windows.x Subject: Re: X-windows DISPLAY environment varia Message-ID: <26900123@m.cs.uiuc.edu> Date: 4 Jul 90 02:03:00 GMT References: <331@ge1cbx.UUCP> Lines: 17 Nf-ID: #R:ge1cbx.UUCP:331:m.cs.uiuc.edu:26900123:000:921 Nf-From: m.cs.uiuc.edu!carroll Jul 3 21:03:00 1990 RE: Setting DISPLAY across telnet/rlogin Both telnet and rlogin preserve the TERM variable (at least in my experience - maybe it fails in some locations). You can use this fact to pass additional information along by setting TERM to be something like "real_term@display", and then having the .login / .profile pick look at TERM, and if it's of this form, extract the information, set DISPLAY, and fix TERM to be just "real_term" again. rlogin and telnet can then be aliased/functioned to set TERM appropriately just before executing the real binary. I have code here that works under ksh to do this, and it seems to function quite nicely. I can give you a copy if you'd like. Alan M. Carroll Barbara/Marilyn in '92 : carroll@cs.uiuc.edu + This time, why not choose the better halves? Epoch Development Team CS Grad / U of Ill @ Urbana ...{ucbvax,pur-ee,convex}!cs.uiuc.edu!carroll