Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!helios.ee.lbl.gov!epb2.lbl.gov!envbvs From: envbvs@epb2.lbl.gov (Brian V. Smith) Newsgroups: comp.windows.x Subject: Re: Figuring out the right DISPLAY variable when you rlogin. Message-ID: <2475@helios.ee.lbl.gov> Date: 24 Apr 89 17:45:33 GMT References: <2647@buengc.BU.EDU> <19688@iuvax.cs.indiana.edu> Sender: usenet@helios.ee.lbl.gov Lines: 18 > >Many X users that I've seen seem to have something like this in, for instance, > >a .login file on a big Vax, to figure out what to set their DISPLAY > > > setenv DISPLAY `hostname`:0 > > hostname will return the name of the machine you are login onto. > The problem is that if you are remotely logged in to some host that is NOT the display server (which is one of the strong points of X), then the hostname command will not give you the hostname of the X server. _____________________________________ Brian V. Smith (bvsmith@lbl.gov) Lawrence Berkeley Laboratory We don't need no stinking signatures!