To set automatically the DISPLAY
variable after rlogin (csh):
if (`who am i | wc -w` > 5) then
setenv DISPLAY `who am i | cut -d"(" -f2 | cut -d")" -f1`:0.0
endif
May vary from flavor to flavor
This tip generously supported by: labrache@gaulois.cad.cea.fr
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.