On Mon, 01 Mar 1999, Robert Sander wrote:
> I have the same experience, and I think this applies generally to
> Linux-SMP. I have a little script that runs in the background:
>
> --- snip ---
> #!/bin/sh
>
> while sleep 30; do
>
> /bin/date -s "`grep rtc_time /proc/rtc | cut -f 2- -d :` `grep rtc_date /proc/rtc |
>cut -f 2 -d : | sed -e s/-//g`" | logger -p local0.debug -t set_time_from_rtc
>
> done
> --- snap ---
This is a script I wrote that I run from cron every 5 minutes.
---%<---
#!/bin/sh
#
# This script fixes the time drifting problem on SMP Linux machines.
#
date -s "`gawk '/rtc_time/ {print $3} /rtc_date/ {print $3}' /proc/rtc`"
---%<---
-M@
--
Matthew Hixson - CIO
FroZenWave Communications
http://www.frozenwave.com
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]