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: fee84,674f735b36ac5ffe X-Google-Attributes: gidfee84,public X-Google-Thread: 1070f0,674f735b36ac5ffe X-Google-Attributes: gid1070f0,public X-Google-ArrivalTime: 1994-10-07 23:48:34 PST Newsgroups: comp.windows.x,comp.sys.sun.admin,comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!uunet!uunet.ca!uunet.ca!obc!gwa1 From: gwa1@bluecross.on.ca (Greg Walker) Subject: Re: Any script for setting the DISPLAY variable? Message-ID: Organization: Ontario Blue Cross References: <35s3f6$4es@bigdog.fred.net> <370u57$8a9@ra.ibr.cs.tu-bs.de> Distribution: usa Date: Fri, 7 Oct 1994 20:38:00 GMT Xref: bga.com comp.windows.x:12349 comp.sys.sun.admin:17089 comp.unix.osf.osf1:3939 In article <370u57$8a9@ra.ibr.cs.tu-bs.de>, Mario Klebsch DG1AM wrote: >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. And just how would it do this? X clients can only find out the address of the server they are to query by examining the DISPLAY variable. It seems to me that you propose a circular solution. Besides, there are many xrsh scripts out there that are extremely portable and can be installed on all your systems. Then it's just a simple "xrsh hostname xterm". Look for it with archie. -- _ gwa1@bluecross.on.ca | "But there's one thing I must say _| |_ Greg Walker | Before they lock me up again: |_ _| Technical Specialist | `You'd be safer at the back!'" |_| Ontario Blue Cross | -Thomas Dolby, "Hyperactive"