I am a programmer working on embedded linux,

On my device, I need to set time everytime when I want to use it to check my program.

Is there any command or script which sets time from some Internet timeserver everytime?

Thanks.

link|improve this question

feedback

1 Answer

Most likely which ever linux disto your working on has a NTP package which will allow you to sync with any pulic NTP server

Tutorial for ubuntu(should be similar in other distros):
http://nixtechnica.blogspot.com/2006/09/how-to-synchronize-time-with-ntp.html

Time servers:
http://tycho.usno.navy.mil/ntp.html

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.