From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,674f735b36ac5ffe X-Google-Attributes: gid103734,public X-Google-Thread: 1070f0,674f735b36ac5ffe X-Google-Attributes: gid1070f0,public X-Google-Thread: fee84,674f735b36ac5ffe X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-03 15:31:33 PST Path: bga.com!news.sprintlink.net!news.clark.net!bent From: bent@clark.net (Ben Taylor) Newsgroups: comp.windows.x,comp.sys.sun.admin,comp.unix.osf.osf1 Subject: Re: Any script for setting the DISPLAY variable? Followup-To: comp.windows.x,comp.sys.sun.admin,comp.unix.osf.osf1 Date: 3 Oct 1994 21:11:33 GMT Organization: Clark Internet Services, Inc., Ellicott City, MD USA Distribution: usa Message-ID: <36ps25$hct@clarknet.clark.net> References: <35s3f6$4es@bigdog.fred.net> NNTP-Posting-Host: clark.net Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 PL2] Xref: bga.com comp.windows.x:12164 comp.sys.sun.admin:16777 comp.unix.osf.osf1:3834 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