[Dxspider-support] crontab

Bob Nielsen nielsen at oz.net
Tue Jul 9 17:57:30 BST 2002


I tried both ntpdate (worked) and ntp (a lot of trouble to set up). 
I then tried chrony and found it met my needs just fine.

Bob, N7XY

On Tue, Jul 09, 2002 at 11:35:45AM +0100, Dirk Koopman wrote:
> George
> 
> Jaime here is talking about the system crontab (which is the correct one
> for this purpose), you are talking about the one in DXSpider which will
> do stuff like this, but unfortunately won't deal with time because you
> need root privileges.
> 
> In my view, you should *not* edit /etc/crontab - this is because, if you
> upgrade to a new release of RedHat (or whatever), the /etc/crontab will
> get overwritten.
> 
> So:
> 
> 1. login as root (or "su -" from a normal account)
> 2. crontab -e (this starts vi with an empty crontab)
> 3. add the lines
> 
> MAILTO=""
> 10 1,7,13,19 * * * /usr/sbin/ntpdate -u -b -s ntp.demon.co.uk
> 
> 4. exit vi and the crontab will be installed and will start to work.
> 
> 
> I have a profound hatred of PC clocks that drift. Hence I do it four
> times a day as it may have drifted a second or two in six hours.
> 
> The MAILTO, btw, stops you getting a mail message everytime it does the
> ntpdate. If you leave it out (or stick a # in fornt of it) you can see
> how much your clock drifts and maybe alter the number of ntpdates
> accordingly).
> 
> Dirk G1TLH
> 
> On Tue, 2002-07-09 at 08:13, Jaime Robles wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > El Mar 09 Jul 2002 03:23, George Lloyd escribi?:
> > > Yes I've had a look at that but I'm trying to get the auto time update to
> > > work with the following line but it appears to be ignored.
> > > 10 01 * * * spawn("rdate -s time.nist.gov")
> > I would use:
> > 10 01 * * * /usr/sbin/ntpdate -u -b -s ntpserver.domain.com
> > 
> > You should install ntp but it works pretty well and there are many ntp servers 
> > on the internet.
> > 
> > You can do that using two ways:
> > The two ways are from root console:
> > ===== 1 =====
> > 
> > # crontab -e
> > 
> > (You edit the cron file... and exit, your cron is installed.)
> > 
> > ===== 2 =====
> > # vi /etc/crontab
> > (You edit the cron file... and exit.)
> > # crontab /etc/crontab
> > (know your cron is installed)
> > 
> > ======================
> > 
> > You can see what is running in your cron using "crontab -l" (also from root)
> > 
> > Remember to run "crontab -l" if you edited the file with vi (or your preferred 
> > editor) or your cron daemon won't read the new file ;-)
> > 
> > 
> > 
> > 
> > - -- 
> > Un saludo,
> > 	Jaime Robles, EA4TV
> > 	jaime at robles.nu
> > 
> > Visita	http://www.redlibre.net - La Red Libre de todos!		
> > 	http://smsdx.net - El DXCluster en tu movil!
> > 
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> > 
> > iD8DBQE9Ko0XXQbDFdwUn+gRAuL3AJ9WKeP0QVbG40LMlsxh5GRyCKm5IwCfQyOP
> > 4KUjkfo38kyLHAP4Jc7h3VA=
> > =/nLZ
> > -----END PGP SIGNATURE-----
> > 
> > 
> > _______________________________________________
> > Dxspider-support mailing list
> > Dxspider-support at dxcluster.org
> > http://www.tobit.co.uk/mailman/listinfo/dxspider-support
> 
> 
> 
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at dxcluster.org
> http://www.tobit.co.uk/mailman/listinfo/dxspider-support

-- 
Bob Nielsen, N7XY                          n7xy at n7xy.net
Bainbridge Island, WA  
IOTA NA-065, USI WA-028S 




More information about the Dxspider-support mailing list