tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Pam Woods, Systems Manager" <axsymgr () UAA ! ALASKA ! EDU>
To: tru64-unix-managers
Subject: DISPLAY variable
Date: Wed, 27 Aug 1997 18:11:18 +0000	[thread overview]
Message-ID: <96078615810644.tru64-unix-managers.marc@archive.invalid> (raw)


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

                 reply	other threads:[~1997-08-27 18:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox