Thread View: comp.sys.sequent
2 messages
2 total messages
Started by Guy Martin
Mon, 11 Mar 1991 00:18
Time Syncing
Author: Guy Martin
Date: Mon, 11 Mar 1991 00:18
Date: Mon, 11 Mar 1991 00:18
23 lines
1545 bytes
1545 bytes
I have a problem I am hoping someone out there can give me some help on. I am trying to sync our system time (Symmetry 27) with another local host. I have tried using a shell script I wrote that simply telnets to the said host's telnet port 13 to return their time stamp. This works fine when I run it as root from a terminal. However, cron spits it out as telnet requires a controlling tty to be present to execute correctly. I have also tried using ntpd (from gatekeeper.dec.com), but due to an older version of Dynix, we don't have 'adjtime', which ntpd requires to adjust the time. Also, we don't have some mundane little things like getopt and the like. So, my question is : "what other alternatives do I have?". Is there something that I am overlooking? Thanks in advance. -Guy -- Guy Martin -- UNIX Systems Support | Internet: guy@library.calpoly.edu Robert E. Kennedy Library, Cal Poly SLO | UUCP: voder!polyslo!library!guy ----------------------------- Standard Disclaimer ----------------------------- My opinions are my own! They do not reflect those of the Kennedy Library.
Re: Time Syncing
Author: Jonathan I. Kamens
Date: Mon, 11 Mar 1991 01:37
Date: Mon, 11 Mar 1991 01:37
23 lines
1740 bytes
1740 bytes
In article <27daccc2.539b@petunia.CalPoly.EDU>, guy@library.calpoly.edu (Guy Martin) writes: |> I have a problem I am hoping someone out there can give me some help on. |> I am trying to sync our system time (Symmetry 27) with another local |> host. I have tried using a shell script I wrote that simply telnets |> to the said host's telnet port 13 to return their time stamp. This |> works fine when I run it as root from a terminal. However, cron |> spits it out as telnet requires a controlling tty to be present to |> execute correctly. 1) You can write a program to connect to port 13 on the remote host and get the time string; using telnet is overkill. Then you avoid the problem of telnet requiring a tty to run on. If you don't want to write the program, we have one at Athena for which I can send you the sources, although I don't guarantee it'll compile on your system. 2) You can use the "pty" package to get telnet to run from cron. Available at a comp.sources.unix archive site near you. -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads