Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Re: Improve terminal/script startup time' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re: Improve terminal/script startup time
Authored by: Impatient1 on May 17, '02 10:53:36AM
Technically, it's not the smartest thing to set the DISPLAY variable from within .cshrc (or any other shell startup file) if you use more than one machine. Murphy will make sure whichever machine you are using will not match the display setting. I always created aliases for different machines instead (in .cshrc) as below:


alias macdisplay 'setenv DISPLAY 192.168.123.001:0.0'
alias sundisplay 'setenv DISPLAY 192.168.123.002:0.0'
alias ntdisplay 'setenv DISPLAY 192.168.123.003:0.0'


then set it according to the machine I was sitting in front of.
For example, to display SUN xterm on Macintosh do:


$ ssh impatient1@blade # imaginary SUN workstation account
$ macdisplay # tell X server to display X clients on my iMac
$ xterm &




[ Reply to This | # ]