Greetings:

Not really, but for those unfortunate enough to have a server they can't get
time synchronization via xntp/ntp to work, here's a simple bash script you can
use to keep the machine's time current:

#!/bin/sh
#Tue Oct 30 21:12:14 MST 2001: Van; ntpdate doesn't want to build on this
machine.
#Here's a script to set the date correctly every night
curdate=`/usr/local/bin/mysql -u whoami -pbigsecret -h timehost -e "select
date_format(now(), '%m/%d/%y %H:%i:%s');" | grep -v 'now()'`
/bin/date -s "$curdate"

Tested on Slackware Linux 7/8.something-or-other...

Regards,
Van
-- 
=================================================================
Linux rocks!!!   http://www.dedserius.com/
=================================================================

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to