Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!helios!diamond!rajeshg From: rajeshg@diamond.tamu.edu (Rajesh Godbole) Newsgroups: comp.windows.x Subject: Re: X-windows DISPLAY environment variable Message-ID: <6325@helios.TAMU.EDU> Date: 3 Jul 90 20:36:35 GMT References: <331@ge1cbx.UUCP> Sender: usenet@helios.TAMU.EDU Lines: 18 To: gerald@ge1cbx.UUCP (Gerald Aden) try this: alias set_display 'set t=`finger -s $USER`;setenv DISPLAY `echo $t[13]`:0.0' set q=`finger -s $USER | grep co` if ($q == "") eval set_display >>& /dev/null i've put this in my login file, it sets the DISPLAY variable to `logged-on-from`:0.0 if you're not logged on on the console of your machine. Rajesh Godbole, | preferred: rajeshg@diamond.tamu.edu Department of Electrical Engineering. | otherwise: godbole@eemips.tamu.edu Texas A&M University, College Station. | (409) 696-9528. ------------------------------------------------------------------------------