LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-01-2014, 08:04 AM   #1
roll.84
LQ Newbie
 
Registered: Oct 2014
Posts: 1

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


Hi,

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

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

crontab -l

* * * * * sntp -s 192.168.128.11

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

/var/log/messages

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


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

Rep: Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572
In your cron job specify
Code:
/the/full/path/to/sntp
 
  


Reply


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 01:26 PM
[SOLVED] Cron doesn't seem to work for me! krisbee Linux - Software 6 10-25-2011 09:12 PM
Gnome-settings-daemon doesn't work Milosevic Linux - Desktop 0 07-03-2009 02:09 PM
cron daemon doesn't start from inittab, but says already running!! AbrahamJose AIX 1 09-19-2008 04:52 AM
How does cron daemon work? smart_sagittari Linux - General 5 01-26-2006 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:35 AM.

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