Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: monnier@di.epfl.ch (Stefan Monnier)
Subject: Re: Any script for setting the DISPLAY variable?
Date: 4 Oct 1994 16:16:11 GMT	[thread overview]
Message-ID: <36rv4b$fnk@info.epfl.ch> (raw)
In-Reply-To: 35s3f6$4es@bigdog.fred.net

In article <35s3f6$4es@bigdog.fred.net>,  <mahesh@evb.com> wrote:
> I rlogin to HP, DEC Alpha OSF1, Sun systems. I have had
> some script in .login which would set the DISPLAY variable.
> But it uses the 'whoami' command to find out from which
> system I have logged in. Unfortunately the output of
> whomai is not the same on all these systems. Was wondering
> if you folks have some script which would set the DISPLAY
> environment variable correctly on ALL systems.

Well, GNU who is the same no matter the platform, so you can choose
GNU who instead of the standard one. Or you can choose a clever
extracting function (that works with all the different format used by
the different whos). But of course, the best suggestion I have is to
switch to tcsh-6.05 which has a REMOTE env var which does exactly what
you want !


	Stefan

PS: ultimately, the best solution is to telnet instead of rlogin and
hope the telnets are recent enough to include the "last" extensions:
this allows you to pass any env var to the remote host (as is always
done for TERM). This way, the DISPLAY var is kept correct even if you
log from X to Y to Z (in which case the "who" thing would try to
display on Y)


  parent reply	other threads:[~1994-10-04 16:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-22 14:13 Any script for setting the DISPLAY variable? news
1994-10-03 21:11 ` Ben Taylor
1994-10-04 16:16 ` Stefan Monnier [this message]
1994-10-05 18:05   ` John Vanderpool
1994-10-06 15:24   ` Yair Friedman
1994-10-08 14:07     ` Stefan Monnier
1994-10-05 15:49 ` Philip Shearer @ZUO-DC EBS-Team
1994-10-06 15:49   ` Sean J. Anaya
1994-10-07 15:50     ` Georges Dubus
1994-10-07 16:07       ` Q. Alex Zhao
1994-10-06 13:30 ` Mario Klebsch DG1AM
1994-10-06 18:37   ` Michael Meissner
1994-10-07 20:38   ` Greg Walker
1994-10-10 16:33     ` Mario Klebsch DG1AM
1994-10-13 14:07       ` Greg Walker
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