Getting Time from an NT Box

Does anyone have a QNX4 utility that will get the time from an Winblows NT
computer?

It is our corporate policy that the Win NT server is the authority on “What
Time Is It”.

My QNX software timestamps never quite agrees with the NT clock.

There is a public domain program called NTP which
is used for synchronizing computer clocks. Take
a look at:

http://www.ntp.org

Mitchell Schoenbrun --------- maschoen@pobox.com

Well, I was looking for something just a little bit simpler. I was hoping
for about 4 lines in C that said:

sendto( UPD_TIME_PORT, myhost, etc );
recvfrom( UDP_TIME_PORT, myhost, etc );
qnx_settime();
system (“rtc -h” );

plus some error checking, etc.

Mitchell Schoenbrun <maschoen@pobox.com> wrote in message
news:Voyager.001222112246.7479A@schoenbrun.com

There is a public domain program called NTP which
is used for synchronizing computer clocks. Take
a look at:

http://www.ntp.org

Mitchell Schoenbrun --------- > maschoen@pobox.com

I also use an NT box as a time server.

I installed a program (as a service) called “timesvc” on the NT box. It
will serve out the time on the “time” port. As a side note, I use
NISTIM32.exe to fetch the time from the Internet that runs from the “at”
timer.

I run “rdate” on the QNX machine’s crontab to update the clock every hour.

Hope you find this helpful.

John.

“Bill at Sierra Design” <BC@SierraDesign.com> wrote in message
news:920bq4$6ag$1@inn.qnx.com

Well, I was looking for something just a little bit simpler. I was hoping
for about 4 lines in C that said:

sendto( UPD_TIME_PORT, myhost, etc );
recvfrom( UDP_TIME_PORT, myhost, etc );
qnx_settime();
system (“rtc -h” );

plus some error checking, etc.

Mitchell Schoenbrun <> maschoen@pobox.com> > wrote in message
news:> Voyager.001222112246.7479A@schoenbrun.com> …
There is a public domain program called NTP which
is used for synchronizing computer clocks. Take
a look at:

http://www.ntp.org

Mitchell Schoenbrun --------- > maschoen@pobox.com

\

I don’t have an ‘rdate’. Can you post source?

John Colburn <jcolburn@city.winnipeg.mb.ca> wrote in message
news:932ila$pg$1@inn.qnx.com

I also use an NT box as a time server.

I installed a program (as a service) called “timesvc” on the NT box. It
will serve out the time on the “time” port. As a side note, I use
NISTIM32.exe to fetch the time from the Internet that runs from the “at”
timer.

I run “rdate” on the QNX machine’s crontab to update the clock every hour.

Hope you find this helpful.

John.

“Bill at Sierra Design” <> BC@SierraDesign.com> > wrote in message
news:920bq4$6ag$> 1@inn.qnx.com> …
Well, I was looking for something just a little bit simpler. I was
hoping
for about 4 lines in C that said:

sendto( UPD_TIME_PORT, myhost, etc );
recvfrom( UDP_TIME_PORT, myhost, etc );
qnx_settime();
system (“rtc -h” );

plus some error checking, etc.

Mitchell Schoenbrun <> maschoen@pobox.com> > wrote in message
news:> Voyager.001222112246.7479A@schoenbrun.com> …
There is a public domain program called NTP which
is used for synchronizing computer clocks. Take
a look at:

http://www.ntp.org

Mitchell Schoenbrun --------- > maschoen@pobox.com



\

Here’s a link to rdate. I don’t believe it comes with source. As I usually
do, you can refer to the Linux source for rdate.

ftp://ftp.qnx.com/usr/free/qnx4/tcpip/utils/rdate.gz

John.

“Bill at Sierra Design” <BC@SierraDesign.com> wrote in message
news:932mrg$32e$1@inn.qnx.com

I don’t have an ‘rdate’. Can you post source?

John Colburn <> jcolburn@city.winnipeg.mb.ca> > wrote in message
news:932ila$pg$> 1@inn.qnx.com> …
I also use an NT box as a time server.

I installed a program (as a service) called “timesvc” on the NT box. It
will serve out the time on the “time” port. As a side note, I use
NISTIM32.exe to fetch the time from the Internet that runs from the “at”
timer.

I run “rdate” on the QNX machine’s crontab to update the clock every
hour.

Hope you find this helpful.

John.

“Bill at Sierra Design” <> BC@SierraDesign.com> > wrote in message
news:920bq4$6ag$> 1@inn.qnx.com> …
Well, I was looking for something just a little bit simpler. I was
hoping
for about 4 lines in C that said:

sendto( UPD_TIME_PORT, myhost, etc );
recvfrom( UDP_TIME_PORT, myhost, etc );
qnx_settime();
system (“rtc -h” );

plus some error checking, etc.

Mitchell Schoenbrun <> maschoen@pobox.com> > wrote in message
news:> Voyager.001222112246.7479A@schoenbrun.com> …
There is a public domain program called NTP which
is used for synchronizing computer clocks. Take
a look at:

http://www.ntp.org

Mitchell Schoenbrun --------- > maschoen@pobox.com





\

Thank you.

John Colburn <jcolburn@city.winnipeg.mb.ca> wrote in message
news:932oba$40c$1@inn.qnx.com

Here’s a link to rdate. I don’t believe it comes with source. As I
usually
do, you can refer to the Linux source for rdate.

ftp://ftp.qnx.com/usr/free/qnx4/tcpip/utils/rdate.gz

John.

“Bill at Sierra Design” <> BC@SierraDesign.com> > wrote in message
news:932mrg$32e$> 1@inn.qnx.com> …
I don’t have an ‘rdate’. Can you post source?

John Colburn <> jcolburn@city.winnipeg.mb.ca> > wrote in message
news:932ila$pg$> 1@inn.qnx.com> …
I also use an NT box as a time server.

I installed a program (as a service) called “timesvc” on the NT box.
It
will serve out the time on the “time” port. As a side note, I use
NISTIM32.exe to fetch the time from the Internet that runs from the
“at”
timer.

I run “rdate” on the QNX machine’s crontab to update the clock every
hour.

Hope you find this helpful.

John.

“Bill at Sierra Design” <> BC@SierraDesign.com> > wrote in message
news:920bq4$6ag$> 1@inn.qnx.com> …
Well, I was looking for something just a little bit simpler. I was
hoping
for about 4 lines in C that said:

sendto( UPD_TIME_PORT, myhost, etc );
recvfrom( UDP_TIME_PORT, myhost, etc );
qnx_settime();
system (“rtc -h” );

plus some error checking, etc.

Mitchell Schoenbrun <> maschoen@pobox.com> > wrote in message
news:> Voyager.001222112246.7479A@schoenbrun.com> …
There is a public domain program called NTP which
is used for synchronizing computer clocks. Take
a look at:

http://www.ntp.org

Mitchell Schoenbrun --------- > maschoen@pobox.com







\