Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: bent@clark.net (Ben Taylor)
Subject: Re: Any script for setting the DISPLAY variable?
Date: 3 Oct 1994 21:11:33 GMT	[thread overview]
Message-ID: <36ps25$hct@clarknet.clark.net> (raw)
In-Reply-To: 35s3f6$4es@bigdog.fred.net

news@bigdog.fred.net 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.

Perhaps what you should do is look at which type of machine you're
on and then do your determination of where you came from.

something like [in /bin/sh, as opposed to csh ]

OS=`uname`
if [ ${OS} = "SunOS" ]; then
	case `uname -r` in
		4*)	blah-blah-blah;;
		5*)	blah-blah-blah;;
	esac
else
# do whatever else you need to figure what system you're on
fi

: thanks

: -- 
: B.G. Mahesh                     | Email: mahesh@evb.com

Ben Taylor
Smoke N' Mirrors, Inc.
bent@snm.com


  reply	other threads:[~1994-10-03 21:11 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 [this message]
1994-10-04 16:16 ` Stefan Monnier
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