how can create cronjob for run this command ?

He3am

Verified User
Joined
Mar 7, 2013
Messages
95
hi
i need create cronjob for run this command every hourse
ntpdate 0.asia.pool.ntp.org
thanks
 
Easy to find with google, look at /etc/crontab or.... well... this is too easy to find.

Code:
0 * * * * /usr/sbin/ntpdate -s 0.asia.pool.ntp.org
Change the path to ntpdate as neede on your system.
The "-s" commandline option is used to log to syslog intead of to default output (mostly screen).
 
Just out of curiousity... Why is it better to use the daemon Zeiter?
I also use a cronjob, but I only let it run once a day.
 
Back
Top