From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2d8c8cd0ecd62bff,start X-Google-Attributes: gid1164f8,public From: John Benner Subject: DISPLAY on Alpha/OSF Date: 1995/05/09 Message-ID: <3oof1s$bn7@newshost.lanl.gov>#1/1 X-Deja-AN: 102296410 content-type: text/plain; charset=us-ascii organization: Los Alamos National Laboratory x-url: news:comp.sys.dec mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 1.1S (X11; I; IRIX 5.3 IP22) Is there a way to automatically set the DISPLAY variable when logging into a remote Alpha running OSF? I log into an Alpha frequently from a variety of other machines (SGI's) and want to avoid manually setting the display to the machine I am logging in from. Any help would be appreciated. On SGI's, the following code in your .login works: if ($?DISPLAY == 0) then if ($?REMOTEHOST) then setenv DISPLAY ${REMOTEHOST}:0 else setenv DISPLAY :0 endif endif But it does not work on the Alpha (because $REMOTEHOST is not set).