Results 1 to 4 of 4
Can anyone point me to where I can find a small app as described?
I tried compiling the source of my favourite Windows applet for this, from: ftp://time.nist.gov/pub/daytime/ but I ...
- 08-20-2005 #1Just Joined!
- Join Date
- Aug 2005
- Location
- 13 N 80 E
- Posts
- 77
Needed: Small application for NTP synchronization to atomic server
Can anyone point me to where I can find a small app as described?
I tried compiling the source of my favourite Windows applet for this, from: ftp://time.nist.gov/pub/daytime/ but I get an error upon make:
Please advise. Thanks. Either a small equivalent app(let) to do the same job under KDE, or instructions to debug the above will help.Code:vasudevan@yos daytime $ make cc -o sw.o -c sw.c sw.c: In function `sw': sw.c:43: warning: conflicting types for built-in function 'sscanf' vasudevan@yos daytime $
- 08-20-2005 #2
if you want something to set your time just write a script like
and replace server with the server you want to use. Once you have written the script you can make it executable withCode:#!/bin/bash ntpdate server
and then you can add it to a cronjob so that it runs every hour or soCode:chmod +x scriptname
- 08-20-2005 #3Just Joined!
- Join Date
- Aug 2005
- Location
- 13 N 80 E
- Posts
- 77
Hey, thanks! But how do I do this "cronjob" thing? (Only now shaking off the first shrouds of Linux-ignorance...)
Originally Posted by dylunio
- 08-20-2005 #4
cron is a program that lets you set times to run programs. So to edit the crontab do
then fill in a line like the following:Code:su [rootpass] crontab -e
and save and exit. Replace /path/to/script with the path to the script you made, and it will run that script ever hour on the hour0 * * * * /path/to/script


Reply With Quote
