LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2014, 12:47 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,198
Blog Entries: 4

Rep: Reputation: 131Reputation: 131
Troubleshooting NTP issues, what does echo $? mean?


Doing some straight forward troubleshooting of NTP.

Once of the commands that I see to troubleshoot NTP is

# echo $?
# 0

I know this is some sort of Shell Command, however I don't understand what the command does and why it returns a value of 0 for our servers that are setup correctly for NTP.

The ones that aren't setup correctly for NTP is either returns a 1 or 0.

thanks
 
Old 12-15-2014, 01:10 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,094

Rep: Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515
Here you are, please read this:

http://tldp.org/LDP/abs/html/internalvariables.html

And this:

http://www.tldp.org/LDP/abs/html/exit-status.html

To understand 'echo $?' and exit status codes.
 
Old 12-15-2014, 02:50 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,198
Blog Entries: 4

Original Poster
Rep: Reputation: 131Reputation: 131
Thanks, marking as solved.
 
  


Reply

Tags
echo, ntp


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] NTP Troubleshooting scarpozzi Linux - Software 5 04-07-2014 06:16 PM
Troubleshooting authentication issues dantes990 Linux - Newbie 1 04-06-2012 08:28 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 08:35 PM
NTP issues? Blinker_Fluid Solaris / OpenSolaris 8 05-30-2008 02:42 AM


All times are GMT -5. The time now is 08:06 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration