home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
- From: kenny@castle.ed.ac.uk (K J MacDonald)
- Newsgroups: fj.mail-lists.x-window
- Subject: Re: setting DISPLAY env variable
- Message-ID: <1992Dec21.200457.7837@sm.sony.co.jp>
- Date: 21 Dec 92 20:04:57 GMT
- Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
- Distribution: fj
- Organization: Edinburgh University
- Lines: 36
- Approved: michael@sm.sony.co.jp
-
- Date: 21 Dec 92 16:47:18 GMT
- Message-Id: <29777@castle.ed.ac.uk>
- Newsgroups: comp.windows.x
- References: <1h4bp2INNi8u@sol.deakin.OZ.AU>, <BzM3Az.2FG@gabriel.keele.ac.uk>
- Sender: xpert-request@expo.lcs.mit.edu
-
- I always run on a different X Terminal each time I log on (to several
- different machines around the campus) and I've got a quick and dirty way
- of setting my DISPLAY env. variable.
-
- On each machine that I log into I place the following line into my
- .bashrc (or .cshrc or whatever) file.
-
- export DISPLAY=`cat $HOME/etc/display`
-
- And on each machine that has a .xsession file I add the following lines
- to the .xsession file.
-
- rsh <remote_machine> "echo $DISPLAY > etc/display"
- rsh <another_mathine> "echo $DISPLAY > etc/display"
-
- and so on.
-
- Now when my .xsession is run, my DISPLAY variable is written into a file
- on each of the machines I have accounts on. This is then read when I log
- on to the other machine.
-
- Simple, eh ?
-
- Kenny.
-
- -----------------------------------------------------------
- Kenneth MacDonald E-mail kenny@festival.ed.ac.uk
- Dept. of Geology & Geophysics
- University of Edinburgh Scotland
- -----------------------------------------------------------
-