Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!gatech!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: rlogin and the DISPLAY variable Message-ID: <9010170525.AA09576@Larry.McRCIM.McGill.EDU> Date: 17 Oct 90 05:25:15 GMT Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 30 > I need to rlogin to a remote X Workstation from my local X > Workstation, and have the DISPLAY environmental variable properly set > so that any X apps I run on the remote machine will display on my > local machine. The setting of DISPLAY must happen without operator > intervention, and must be correct no matter which of several local > machines rlogin to the remote machine. The solution I use is to use xrlogin instead of rlogin, and run xrlogind on the remote machine. xrlogin and xrlogind are programs I wrote. xrlogin packages $TERM and $DISPLAY up into a string, stuffs it into $TERM, and execs rlogin. xrlogind recognizes a TERM variable of the special format produced by xrlogin and unpacks it into setenv commands (I use a csh-based shell). Thus, my .cshrc everywhere contains eval `xrlogind` and if I use xrlogin to log in remotely everything works. (I am describing the technique rather than offering code because the code depends on local include files and library routines to such an extent that I don't feel up to getting it in releasable shape. If you want the code anyway, drop me a line.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu