Basic linux shell scripting: getting NTP at linux?
I want to write a shell s开发者_StackOverflow社区cript for getting NTP(Network Time Protocol) info for debian server.
How can I write, I don't know ?
Why are you writing your own? There are lots of existing tools to do this. openntp
is one example. Look in aptitude.
Is there a reason you can't use the existing tools?
You probably want to take a look at ntpdate manpage for details on how to use this command.
精彩评论