From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,674f735b36ac5ffe X-Google-Attributes: gid103734,public X-Google-Thread: 1070f0,674f735b36ac5ffe X-Google-Attributes: gid1070f0,public X-Google-Thread: fee84,674f735b36ac5ffe X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-07 14:28:42 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!spool.mu.edu!bloom-beacon.mit.edu!paperboy.osf.org!meissner From: meissner@osf.org (Michael Meissner) Newsgroups: comp.windows.x,comp.sys.sun.admin,comp.unix.osf.osf1 Subject: Re: Any script for setting the DISPLAY variable? Date: 06 Oct 1994 18:37:34 GMT Organization: Open Software Foundation Distribution: usa Message-ID: References: <35s3f6$4es@bigdog.fred.net> <370u57$8a9@ra.ibr.cs.tu-bs.de> NNTP-Posting-Host: pasta.osf.org In-reply-to: mkl@rob.cs.tu-bs.de's message of 6 Oct 1994 13:30:15 GMT Xref: bga.com comp.windows.x:12339 comp.sys.sun.admin:17066 comp.unix.osf.osf1:3932 In article <370u57$8a9@ra.ibr.cs.tu-bs.de> mkl@rob.cs.tu-bs.de (Mario Klebsch DG1AM) writes: | Hello! | news@bigdog.fred.net writes: | | >I rlogin to HP, DEC Alpha OSF1, Sun systems. I have had | >some script in .login which would set the DISPLAY variable. | >But it uses the 'whoami' command to find out from which | >system I have logged in. | | It does not lead to a correct DISPLAY variable when you just figure | out, from which host you logged in. The IMHO most easy way would be, | if xterm had a query for the DISPLAY. But it does not. So option | number two is to pass DISPLAY trough rlogin. This can be done by the | following scripts. Someone told me, to pass the XAUTHORITY cookies | as well, but I don't need it, because I share my home directory on all | systems. If your systems are using a modern version of telnet, telnet will pass the DISPLAY variable through, modifing : to :. Note, if you are crossing domain's, most versions of telnet will not fully qualify the domain name (ie, call gethostbyname after getting the hostname with gethostname). I fixed this for the OSF/1 1.3 reference source that shipped this last June. When/if it will show up in DEC's OSF/1, I haven't the foggiest. -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 Old hackers never die, their bugs just increase.