Linux date as filepro sees it

Ron Kracht rkracht at filegate.net
Wed Oct 25 20:43:34 PDT 2006


Bill Campbell wrote:
> On Wed, Oct 25, 2006, Jeff Harrison wrote:
>   
>> --- Fairlight <fairlite at fairlite.com> wrote:
>>
>>     
>
> ...
>   
>> Thanks.  I don't know what time zone the box is
>> configured for.  Do you take me for a sys admin or
>> something :-)
>>     
>
>   
>> I tried echo $TZ and it did not come back with any
>> value.  I'll bet you are right - that the BIOS time is
>> off.  Is there a way to heck that without re-booting?
>>     
>
> Presuming that the Linux time is correct, and that you're logged
> in as root, ``hwclock -u -w'' will write the Linux time to the
> hardware clock.  I can't imagine FP going to the hardware instead
> of using the normal Linux/Unix calls to get the time.
>
> Bill
>   

I find it a good idea to sync with a time server before running the 
hwclock command you suggest. 

The command to do that is rdate -s timeServerAddress

Information related to finding a public time server is available at
http://ntp.isc.org/bin/view/Servers/WebHome#Finding_A_Time_Server

If you find your hardware clock drifting a inordinate amount it can be a 
good idea to put the above commands in a cron job.





More information about the Filepro-list mailing list