[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] cron.hourly
- Subject: RE: [cobalt-users] cron.hourly
- From: "Colin J. Raven" <cjraven@xxxxxxxxxxx>
- Date: Mon Jan 29 10:57:03 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
>Scripts in cron.hourly will run automatically, every hour.
>
>For example, because I like to synchronize the times on all my servers
>hourly, I slightly modified a copy of the ntpupdate script in
>cron.daily, and put it into cron.hourly.
>
>Here it is (note that you may not get good results from the nameserver
>I'm using):
>
>#!/bin/sh
>
># NTPdate cron event
>#
># ntpupdate.hourly
>#
># modified by Jeff Lasman (nobaloney.net) 07/23/00
># for RaQ3
># modified from /etc/cron.daily/ntpdate.auto
># this file should be installed chmod 700 chown root:root
># in directory /etc/cron.hourly
>#
># Copyright (C) 1998, Cobalt Networks, Inc
># All rights reserved
>
>sleep 123
>/usr/sbin/ntpdate ntp-cup.external.hp.com >>/var/cobalt/sauce.log 2>&1
>/sbin/clock -w -u >>/var/cobalt/sauce.log 2>&1
>rm /etc/adjtime
>/sbin/clock -w -u >>/var/cobalt/sauce.log 2>&1
>--
Nice little script Jeff??? <grin>
A few questions however;
1. What are you calling it?? ntpupdate.sh?? or just the same name as the
daily file?
2. Why rm the /etc/adjtime file? Can it be overwritten instead? or does
the GUI recreate it in between time synch's????
Sorry to lay all these questions on you, but this has grabbed my
imagination and gotten me thinking about shell scripting in general
which is such a boundless subject.
Regards,
-Colin
--
Colin J. Raven