LinuxQuestions.org
Help answer threads with 0 replies.
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 09-22-2008, 12:45 PM   #1
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 316

Rep: Reputation: 30
Ping & timestamp


I want to use the ping on Linux to print a timestamp every line. How can I do this?
 
Old 09-22-2008, 01:40 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,919

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by Zeno McDohl View Post
I want to use the ping on Linux to print a timestamp every line. How can I do this?
Check out the man page for the ping command, specifically the -T option.
 
Old 09-22-2008, 01:44 PM   #3
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 316

Original Poster
Rep: Reputation: 30
That seems like it sends a timestamp in the ping, not prints it..?

Anyway:
Code:
root@zeno:~# ping -T tsonly google.com
PING google.com (72.14.207.99) 56(124) bytes of data.
After that my server crashes.
 
Old 09-22-2008, 01:52 PM   #4
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by TB0ne View Post
Check out the man page for the ping command, specifically the -T option.
Test your ideas before you post. The -T option is not what you think. It is Time To Live (how many ip switches/routers to go through before killing the ping packet). When you don't pass a number I guess this happens.

LOL.
 
Old 09-22-2008, 03:24 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,919

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by CRC123 View Post
Test your ideas before you post. The -T option is not what you think. It is Time To Live (how many ip switches/routers to go through before killing the ping packet). When you don't pass a number I guess this happens.

LOL.
I would have, if I had been near a Linux box when I posted. Whoops. That's why I suggested reading the MAN page...I poked at it online, but didn't check it out first.

Last edited by TB0ne; 09-22-2008 at 03:33 PM.
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 03:39 PM
windows & linux cant ping each other esgaroth Linux - Networking 2 08-13-2007 03:29 AM
Ping always fails but TCP/IP & everything else works nsfx Linux - Networking 5 04-09-2007 02:59 PM
Linux & XP & ping m_pahlevanzadeh Linux - Networking 4 07-22-2004 01:49 AM
Ping & Server Speed mikeshn Linux - General 8 06-07-2003 08:19 PM


All times are GMT -5. The time now is 02:01 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