Article View: comp.windows.x.apps
Article #635twm and setting $DISPLAY
From: Tim Veatch
Date: Sat, 12 Dec 1992 00:51
Date: Sat, 12 Dec 1992 00:51
24 lines
1194 bytes
1194 bytes
I sometimes use the twm's root menu to open up various
xterm's. I would have twm executing on my local host
and in my .login file the following to set my $DISPLAY
properly:
#
# Figure out who we are logged in from, to set Xwindow DISPLAY properly.
#
if (! $?DISPLAY ) then
set whoami = `who am i`
if ( $?whoami ) then
set rhost = `echo $whoami | sed "s/.*(//" | sed "s/).*//"`
setenv DISPLAY "$rhost":0
echo "Setting DISPLAY to $rhost":0
unset rhost
endif
unset whoami
endif
Now my problem: to reduce my charges, I now have twm executing
on a remote machine. Does anyone know a good way to set
my $DISPLAY?
My apologies if this in the wrong group to post such a request.
Technical Details
Message-ID:
<92Dec11.195103est.48007@neat.cs.toronto.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!utcsri!relay.cs.toronto.edu!neat.cs.toronto.edu!cs.toronto.edu!veatchShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!relay.cs.toronto.edu!neat.cs.toronto.edu!cs.toronto.edu!veatch Newsgroups: comp.windows.x.apps From: veatch@cs.toronto.edu (Tim Veatch) Subject: twm and setting $DISPLAY Message-ID: <92Dec11.195103est.48007@neat.cs.toronto.edu> Sender: Timothy R Veatch <veatch@cs.toronto.edu> Organization: Toronto Fake-Sender: "Tim Veatch" <veatch@cs.toronto.edu> Distribution: na Date: 12 Dec 92 00:51:27 GMT Lines: 25