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: fee84,674f735b36ac5ffe X-Google-Attributes: gidfee84,public X-Google-Thread: 1070f0,674f735b36ac5ffe X-Google-Attributes: gid1070f0,public X-Google-ArrivalTime: 1994-10-07 03:04:44 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ncar!newshost.lanl.gov!ferrari.mst6.lanl.gov!tesuque.cs.sandia.gov!lynx.unm.edu!dns1.NMSU.Edu!opus!sanaya From: sanaya@vrl.nmsu.edu (Sean J. Anaya) Newsgroups: comp.windows.x,comp.sys.sun.admin,comp.unix.osf.osf1 Subject: Re: Any script for setting the DISPLAY variable? Date: 06 Oct 1994 15:49:30 GMT Organization: Visioneering Research Laboratory Distribution: usa Message-ID: References: <35s3f6$4es@bigdog.fred.net> <36uhtn$5du@mrnews.mro.dec.com> NNTP-Posting-Host: calypso.nmsu.edu In-reply-to: pbs@zuunix.zuo.dec.com's message of 5 Oct 1994 15:49:11 GMT Xref: bga.com comp.windows.x:12320 comp.sys.sun.admin:17023 comp.unix.osf.osf1:3917 This should work: #Set the default X server. #if ($?DISPLAY == 0) then # if ($?REMOTEHOST) then # setenv DISPLAY ${REMOTEHOST}:0.0 # else # setenv DISPLAY :0.0 # endif #endif -- ****************************************************************************** Sean J. Anaya PO Box 30001-0001, DEPT 3ARP System Administrator Las Cruces, NM 88003-0001 Visioneering Research Laboratory Tel: (505) 646-8067 E-Mail: sanaya@vrl.nmsu.edu Fax: (505) 646-8071 WWW http://vitoria.nmsu.edu/ "Hope is the thing with feathers That perches in the soul And sings the tune--without the words And never stops at all...." --Emily Dickinson