DISPLAY variable

From: Pam Woods, Systems Manager <axsymgr_at_UAA.ALASKA.EDU>
Date: Wed, 27 Aug 1997 10:11:18 -0800

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_at_uaa.alaska.edu
Received on Wed Aug 27 1997 - 20:32:56 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT