News:

Facebook killed the radio star. And by radio star, I mean the premise of distributed forums around the internet. And that got got by Instagram/SnapChat. And that got got by TikTok. Where the fuck is the internet we once knew?

Main Menu

Joe <3 cron!

Started by Joe, March 28, 2006, 07:45:26 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

iago

Quote from: Joe on March 30, 2006, 07:49:35 AM
Hehe @ darkside being to slow to even keep track of time.
The time isn't kept track of by the CPU, it's an independent component in the BIOS.  And it's a really old computer, so it's got a crappy BIOS. 

Sidoh

Quote from: iago on March 30, 2006, 01:11:07 PM
The time isn't kept track of by the CPU, it's an independent component in the BIOS.  And it's a really old computer, so it's got a crappy BIOS. 

Obviously, I was testing Joe.  I meant that your BIOS is in relative motion.

... >_>

I seriously kind of knew that (though I've never really worded it), since it's obvious that time is kept when the computer has no power.

Blaze

I always wondered why the forums time was always late 10-20 minutes every time I checked.   :)

I think auto-updating is a neat idea, for a server/testbox like BATSERVER which is currently Resting In Peices.
And like a fool I believed myself, and thought I was somebody else...

iago

Quote from: Sidoh on March 30, 2006, 01:14:39 PM
Quote from: iago on March 30, 2006, 01:11:07 PM
The time isn't kept track of by the CPU, it's an independent component in the BIOS.  And it's a really old computer, so it's got a crappy BIOS. 

Obviously, I was testing Joe.  I meant that your BIOS is in relative motion.

... >_>

I seriously kind of knew that (though I've never really worded it), since it's obvious that time is kept when the computer has no power.

I wasn't listening to you, but yeah, if the bios is moving then the whole computer is.  Maybe I should stop it from vibrating to fix the clock?

iago

All right, darkside's time should be fixed nightly now. 

The script is super simple:

#!/bin/sh

DATE="/bin/date"
NTPDATE="/usr/sbin/ntpdate"
NTPSERVER="pool.ntp.org"

$DATE
$NTPDATE "$NTPSERVER"
$DATE


Notice that I like to store program names in variables.  Most people don't do that, but I find it helpful in case a program moves.