LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ping & timestamp (https://www.linuxquestions.org/questions/linux-newbie-8/ping-and-timestamp-671602/)

Zeno McDohl 09-22-2008 11:45 AM

Ping & timestamp
 
I want to use the ping on Linux to print a timestamp every line. How can I do this?

TB0ne 09-22-2008 12:40 PM

Quote:

Originally Posted by Zeno McDohl (Post 3288364)
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.

Zeno McDohl 09-22-2008 12:44 PM

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.

CRC123 09-22-2008 12:52 PM

Quote:

Originally Posted by TB0ne (Post 3288412)
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.

TB0ne 09-22-2008 02:24 PM

Quote:

Originally Posted by CRC123 (Post 3288424)
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.


All times are GMT -5. The time now is 10:17 PM.