From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,be652b8c13d7c5ec X-Google-Attributes: gidf8c9b,public X-Google-Thread: fee84,1907ec151ac7e4fd X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,1907ec151ac7e4fd X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-01-08 07:01:49 PST Xref: sparky comp.unix.questions:15315 comp.unix.osf.osf1:52 comp.unix.osf.misc:73 Newsgroups: comp.unix.questions,comp.unix.osf.osf1,comp.unix.osf.misc Path: sparky!uunet!psinntp!alliant!merk!rmkhome!frog!miket From: miket@frog.CRDS.COM (Michael C Tiernan) Subject: Re: getting system date/time from another system Message-ID: <1993Jan7.190236.7339@frog.CRDS.COM> Keywords: is it appropriate to use RPCs? Organization: Charles River Data Systems References: <1993Jan6.213225.14974@porthos.cc.bellcore.com> <1993Jan6.213842.15117@porthos.cc.bellcore.com> Distribution: usa Date: Thu, 7 Jan 1993 19:02:36 GMT wws@iscp.bellcore.com (Wayne Scott) writes: > I'm working on an X/Motif application in which I need to get the system time > from another machine. Is there a recommended/preferred way to do this? I do belive (yet to be confirmed) that the 'correct' or most recognized/universal way to do this is to telnet to port 13 on the host machine. That is assuming you don't have a network time host. When I did it, I get: %> telnet natty 13 Trying NNN.NNN.NNN.NNN ... Connected to natty. Escape character is '^]'. Thu Jan 7 13:56:38 1993 Connection closed by foreign host. %> > I forgot to mention... the environment is DEC/Alpha OSF/1. I'm not aware if that enters into the problem. Good luck with it all. -- << MCT >> Michael C Tiernan. - GEnie:M.Tiernan - AOL:M Tiernan/BCS Mike UUCP = alfalfa!pro-angmar!m.tiernan OR miket@frog.UUCP It's too bad that it takes almost half of our life to realize that it was a "Do-It-Yourself" project.