Updating System Time through Java Program
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   SHIVAKUMAR_THOTA
Posted On:   Tuesday, April 6, 2004 03:09 AM

I wanted to write a program which will update the System Time. The time is sent to this client by another time server(a small piece of code that I had written) and this is a long value. The client that I have written is able to receive this time value.

But I am unable to set the system time.

Help me.

Regards,
Shivakumar Thota.

Re: Updating System Time through Java Program

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, April 6, 2004 06:04 AM

Runtime exec the "date" command, as root.


Also note that "ntp" already does what you want

About | Sitemap | Contact