Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!dali.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpcc05!hpcuhb!hpsqf!hpopd!iant@hpopd.HP.COM From: iant@hpopd.HP.COM (Ian Thornton) Newsgroups: comp.windows.x Subject: Re: rlogin and the DISPLAY variable Message-ID: <7910007@hpopd.HP.COM> Date: 18 Oct 90 08:09:25 GMT References: Organization: HP PWD, Pinewood UK. Lines: 29 > I need to rlogin to a remote X Workstation from my local X Workstation, and > have the DISPLAY environmental variable properly set ... > The setting of DISPLAY must happen without operator intervention ... > Using the remote shell command is out, since the primary app to be run on the > remote machine is interactive ... You're right that you can't use 'remsh' but if you have 'xrsh' on your X machines, this should serve your purposes. 'xrsh' is a front-end to 'rsh' or 'remsh' and makes sure that the value of DISPLAY is propogated to the remote session automatically. To login on remote machines I use the line ... xrsh /usr/bin/X11/xterm -e ksh .xprofile where is the name of the remote machine, .xprofile is a file I keep in the HOME directory of each remote machine. It is a copy of .profile except any references to DISPLAY are removed and a line is added at the end containing ... exec ksh This setup enables me to execute any X application on any X workstation from any other workstation. Hope this helps ... Ian Thornton (iant@hpopd.hp.com)