[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] cron.hourly



"Colin J. Raven" wrote:

> Nice little script Jeff??? <grin>

I didn't write it.  Cobalt did.  Did you miss their copyright?

> A few questions however;

> 1. What are you calling it?? ntpupdate.sh?? or just the same name as the
> daily file?

Cobalt calls theirs ntpdate.auto; it's at /etc/cron.daily/ntpdate.auto.

I call mine ntpupdate.hourly; it's at
/etc/cron.hourly/ntpupdate.hourly.  You can calls your's anything you
want (in fact you can even call it late-for-dinner <smile>).

> 2. Why rm the /etc/adjtime file? Can it be overwritten instead? or does
> the GUI recreate it in between time synch's????

No idea.  It's copied.  I don't even know why I put in the header that I
did; I guess because I had to remove the line "Configured through the
administrative web interface"; I could have just changed it to "be sure
to recopy from /etc/ntpdate.auto after changing the time-server in the
administrative web interface".  I have no idea why I didn't.  I guess it
looks like I'm taking credit for doing almost no work at all, except
moving it.  I shouldn't have done it that way, I suppose, but afterall,
I never expected anyone but me to see it anyway <smile>.

> 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.

It sure is.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205