LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-22-2007, 01:24 AM   #1
ciscodailoan
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
Anyone can be help me


I have a project to write network program .so I need to calculate time when link failure in linux.It mean that I can ping to one destination Ip address
when this can't rearch and after that can rearch. I need to calculate during time it.So anyone let me some opinion it this solution.
 
Old 12-23-2007, 01:24 AM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
http://www.cyberciti.biz/tips/linux-...ose-tools.html

The following program, mtr, seems very appropriate:

http://www.cyberciti.biz/tips/findin...unix-oses.html

Also note the following from the man page for tcpdump:

-tt Print an unformatted timestamp on each dump line.

-ttt Print a delta (in micro-seconds) between current and previous
line on each dump line.

From http://node1.yo-linux.com/cgi-bin/ma...ommand=tcpdump

It seems to me that you could easily write a script to make use of this.

Hope this helps get you started.
 
Old 12-24-2007, 12:41 AM   #3
ciscodailoan
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thank EHAWK very much.
If I want to Shell script for my project.How tool or programm is timer in order to calculate timer for Shell (BASH or so on. Thank everybody
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:26 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
Open Source Consulting | Domain Registration