Author Topic: Joe <3 cron!  (Read 7609 times)

0 Members and 1 Guest are viewing this topic.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Joe <3 cron!
« Reply #15 on: March 30, 2006, 01:11:07 pm »
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. 

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Joe <3 cron!
« Reply #16 on: March 30, 2006, 01:14:39 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.

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: Joe <3 cron!
« Reply #17 on: March 30, 2006, 03:41:00 pm »
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...

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Joe <3 cron!
« Reply #18 on: March 30, 2006, 08:21:24 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?

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Joe <3 cron!
« Reply #19 on: March 30, 2006, 08:29:42 pm »
All right, darkside's time should be fixed nightly now. 

The script is super simple:

Code: [Select]
#!/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.