Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ncar!boulder!uswat!bar From: bar@uswat.uswest.com (Bala Ramakrishnan 595-2868) Newsgroups: comp.windows.x Subject: Setting up DISPLAY environment variable Message-ID: <9173@uswat.UUCP> Date: 29 Jun 90 16:54:14 GMT Sender: news@uswat.UUCP Organization: US WEST Advanced Technologies, CO, USA Lines: 22 I run X11R4 on a sun 3/80. Also, I run some Xclients on a Sparc server by rlogin to the sparc machine. My home directories are mounted on both the Sun 3/80 and the sparc machine. My .cshrc file has : setenv DISPLAY localhost:0 However, when I rlogin to the sparc server, the same .cshrc file gets executed and DISPLAY is set to localhost:0. When I am on the sparc server, my .cshrc file should set DISPLAY to :0 Is there a way (say by executing a program) to inquire the sparc machine where Iam rlogged from ,so that I can set the DISPLAY variable to the internet address of the machine from which I rlogged automatically. Right now, I type in the setenv DISPLAY :0 manually after the rlogin window comes up. -- :-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-) :-< E-mail: bar@uswest.com USWEST Advanced Technologies :-> :-< 303-595-2868(w) Denver Co 80202 :-> :-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(