home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15315 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.6 KB

  1. Xref: sparky comp.unix.questions:15315 comp.unix.osf.osf1:52 comp.unix.osf.misc:73
  2. Newsgroups: comp.unix.questions,comp.unix.osf.osf1,comp.unix.osf.misc
  3. Path: sparky!uunet!psinntp!alliant!merk!rmkhome!frog!miket
  4. From: miket@frog.CRDS.COM (Michael C Tiernan)
  5. Subject: Re: getting system date/time from another system
  6. Message-ID: <1993Jan7.190236.7339@frog.CRDS.COM>
  7. Keywords: is it appropriate to use RPCs?
  8. Organization: Charles River Data Systems
  9. References: <1993Jan6.213225.14974@porthos.cc.bellcore.com> <1993Jan6.213842.15117@porthos.cc.bellcore.com>
  10. Distribution: usa
  11. Date: Thu, 7 Jan 1993 19:02:36 GMT
  12. Lines: 28
  13.  
  14. wws@iscp.bellcore.com (Wayne Scott) writes:
  15. > I'm working on an X/Motif application in which I need to get the system time
  16. > from another machine.  Is there a recommended/preferred way to do this?
  17.  
  18.     I do belive (yet to be confirmed) that the 'correct' or most
  19.     recognized/universal way to do this is to telnet to port 13 on
  20.     the host machine.  That is assuming you don't have a network
  21.     time host.
  22.  
  23.     When I did it, I get:
  24.         %> telnet natty 13
  25.         Trying NNN.NNN.NNN.NNN ...
  26.         Connected to natty.
  27.         Escape character is '^]'.
  28.         Thu Jan  7 13:56:38 1993
  29.         Connection closed by foreign host.
  30.         %>
  31.  
  32. > I forgot to mention... the environment is DEC/Alpha OSF/1.
  33.  
  34.     I'm not aware if that enters into the problem.
  35.  
  36.     Good luck with it all.
  37. -- 
  38. << MCT >>  Michael C Tiernan. - GEnie:M.Tiernan - AOL:M Tiernan/BCS Mike 
  39. UUCP = alfalfa!pro-angmar!m.tiernan OR miket@frog.UUCP
  40.       It's too bad that it takes almost half of our life
  41.     to realize that it was a "Do-It-Yourself" project.
  42.