Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!bu-cs!buengc!marco From: marco@buengc.BU.EDU (Marco Zelada) Newsgroups: comp.windows.x Subject: Re: Figuring out the right DISPLAY variable when you rlogin. Message-ID: <2647@buengc.BU.EDU> Date: 24 Apr 89 00:38:19 GMT References: <19688@iuvax.cs.indiana.edu> Reply-To: marco@buengc.bu.edu (Marco Zelada) Followup-To: comp.windows.x Organization: Boston Univ. Col. of Eng. Lines: 20 In article <19688@iuvax.cs.indiana.edu> sahayman@iuvax.cs.indiana.edu (Steve Hayman) writes: > >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 >environment variable to whenever they rlogin from a workstation: How about the following: setenv DISPLAY `hostname`:0 hostname will return the name of the machine you are login onto. -- ________________________________________________________________________________ Name: Marco Zelada Phone: 617 353 9882, Fax: 353 6322 VLSI CAD Engineer E-mail: marco@buengc.bu.edu Dept: Electrical & Computer Eng. Mail: 44 Cummington St. Room 236 Org: Boston University Boston MA, 02215 ________________________________________________________________________________