Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-01-2014, 09:04 AM   #1
LQ Newbie
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
sntp with cron daemon doesn't work


I am using SuSE 12.2 system. I set sntp -s date command in crond as following

echo "* * * * * sntp -s " > /home/temp/cron.temp
crontab /home/temp/cron.temp
and then checking this issue

crontab -l

* * * * * sntp -s

it is looks Ok.

However, the time is not updated when i change set a garbage date

There is system messages log here it is invoked every minutes


Oct 1 09:48:01 x2 /USR/SBIN/CRON[14583]: (root) CMD (sntp -s )
Oct 1 09:49:01 x2 /USR/SBIN/CRON[15265]: (root) CMD (sntp -s )
Oct 1 09:50:01 x2 /USR/SBIN/CRON[15944]: (root) CMD (sntp -s )
Oct 1 09:51:01 x2 /USR/SBIN/CRON[16625]: (root) CMD (sntp -s )
Oct 1 09:52:01 x2 /USR/SBIN/CRON[17315]: (root) CMD (sntp -s )

Ontheotherhand date is updated when i call the command (sntp -s manually
Old 10-01-2014, 10:40 AM   #2
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,964

Rep: Reputation: 1230Reputation: 1230Reputation: 1230Reputation: 1230Reputation: 1230Reputation: 1230Reputation: 1230Reputation: 1230Reputation: 1230
In your cron job specify


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [cron] Root cron ib centos 6.3 doesn't work/ killout Linux - Newbie 2 12-17-2012 02:26 PM
[SOLVED] Cron doesn't seem to work for me! krisbee Linux - Software 6 10-25-2011 10:12 PM
Gnome-settings-daemon doesn't work Milosevic Linux - Desktop 0 07-03-2009 03:09 PM
cron daemon doesn't start from inittab, but says already running!! AbrahamJose AIX 1 09-19-2008 05:52 AM
How does cron daemon work? smart_sagittari Linux - General 5 01-26-2006 09:40 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration