The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to fetch data from a text file in Unix shikhakaul Shell Programming and Scripting 4 01-25-2008 08:20 AM
Need help in choosing Unix Platform. justanoob UNIX for Dummies Questions & Answers 3 03-10-2005 12:45 AM
Change time source? michelemcdonald UNIX Desktop for Dummies Questions & Answers 4 09-09-2003 08:55 AM
Porting of Windows written unix scripts to unix platform tamilselvi UNIX for Advanced & Expert Users 7 10-02-2002 07:55 AM
C++ on True Unix Platform mandar3 High Level Programming 2 10-15-2001 08:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-11-2007
Registered User
 

Join Date: Mar 2007
Posts: 5
How To Fetch Time From Putside Source On Unix Platform?

CAN ANY PLESE TEL ME,HOW CAN I FETCH TIME FROM SOME EXTERNAL SOURCE (eg. NETWORK TIME SERVER S 200) ON UNIX PLATFORM,PROVIDED TIME IS COMING FROM SOME IP "X".WHAT CODE SHOULD I RUN IN STARTUP
Reply With Quote
Forum Sponsor
  #2  
Old 05-11-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
ntp is designed exactly for that.
Do you want a one-time piece of code to fetch time/date from a local server or do you want to keep the system clock in sync with a network time server?

Consider doing some reading - www.ntp.org

xntpd or ntpd may already be part of your system.

Some systems come with /usr/bin/ntpdate which does the onetime fetch and time set. Check yours.
Reply With Quote
  #3  
Old 05-11-2007
Registered User
 

Join Date: Mar 2007
Posts: 5
i want to sync system clock with NTS

tha NTS comes with a patch that supports only windows env, not UNIX,so to make it run on unix,i need to put a patch ,which in turn ,wil fetch time from my NTS.tha patch or demon watever they cal in unix is needed which can fetch time from NTS ,the moment system loads OS.like it usually do with RTC
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0