From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078615810644.tru64-unix-managers.marc@archive.invalid> From: "Pam Woods, Systems Manager" Date: Wed, 27 Aug 1997 18:11:18 +0000 To: tru64-unix-managers Subject: DISPLAY variable X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078615810644 Does anyone have code that I can put in the systemwide login for users (/etc/profile) ...so that when people log in from a macx term or vax3100 type station or anywhere, it will 1) Detect oh they're running xterm/dxterm/dtterm etc 2) set the DISPLAY variable to the correct thing... Usually I get either :0 or Wed Aug 27 10:01:44 AKDT 1997 :0 If I telnet in sometimes it's correct... this is what I currently have: DISPLAY=`who -M am i | awk '{print $6}' | sed 's/[()]//g'`:0; export DISPLAY doesn't seem to work alot of time... thanks for the help. Pam ________ Pam Woods - axsymgr@uaa.alaska.edu