home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sgi / 16353 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.8 KB  |  43 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!utcsri!skule.ecf!torn!spartan.ac.BrockU.CA!edik
  3. From: edik@spartan.ac.BrockU.CA (Ed Sternin)
  4. Subject: Telnet bug? or feature?
  5. Message-ID: <1992Nov12.211950.622@spartan.ac.BrockU.CA>
  6. Organization: Brock University, St. Catharines Ontario
  7. X-Newsreader: Tin 1.1 PL4
  8. Date: Thu, 12 Nov 1992 21:19:50 GMT
  9. Lines: 32
  10.  
  11. I thought I was being clever: at login, in one of the
  12. scripts (.cshrc, I guess) I check if DISPLAY is defined,
  13. I check if remotehost is defined, and set things appropriately.
  14. The problem is that if all that fails, I say aha, we must be local,
  15. so 
  16.   setenv  DISPLAY :0
  17. or something like that.  Having done that, I rlogin to another 
  18. machine, and rlogin upon seeing :0 prepends a proper fully qualified
  19. name, so that on the new machine I have DISPLAY=old.machine.full.name:0,
  20. and all windows work fine.  Now I telnet to the same machine; telnet
  21. sees :0 and prepends a local name, too -- BUT ONLY THE NICKNAME, not
  22. the fully qualified domain name!!  So on the new machine I end up with
  23. DISPLAY=old:0  to use the same example.  This only has meaning if I moved
  24. within a subdomain, but fails miserably when I hop across subdomains.
  25.  
  26. If in telnet> I listenv (or is it printenv?) I can see the error even before
  27. OPENing a connection, as what telnet will send out as the local DISPLAY
  28. name.  
  29.  
  30. Any fix?   Any easy shell way of obtaining a fully qualified domain name
  31. of my local machine -- so that I could always set DISPLAY to
  32.   old.machine.full.name:0     and not just
  33.   :0
  34. ???
  35.  
  36. Thanks for your help.
  37.  
  38. -- 
  39.  
  40. -------------------------------------------------------------------------------
  41. Ed Sternin, Dept. of Physics, Brock University, St.Catharines, Ontario, L2S 3A1
  42.   voice: (416)688-5550 ext.3414   FAX: (416)682-9020   email: edik@brocku.ca
  43.