The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ping script sriram003 Shell Programming and Scripting 2 05-26-2008 08:47 PM
script to ping servers sriny UNIX for Advanced & Expert Users 2 01-23-2008 06:19 AM
ping from Unix script asutoshch Shell Programming and Scripting 2 05-09-2005 01:23 AM
Ping script using Redhat and BAsh edkung Shell Programming and Scripting 11 06-13-2003 12:28 PM
IP Ping script perleo Shell Programming and Scripting 11 10-14-2002 12:58 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-01-2006
Registered User
 

Join Date: Jun 2006
Posts: 1
Ping Script

hello, I am looking to make a script that will ping a remote ip address. Upon completion of the ping I want the program to either ping again if the # of packets transmitted is equal to the number of packets received or exit if the two values are unequal and information was lost. I am not sure if I should go about this program with a shell script or a C script or any other alternative. In either case would someone be able to point me in the correct direction?
Reply With Quote
Forum Sponsor
  #2  
Old 06-01-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
Aside from using ip traffic for not much return, what are you attempting?
Making sure that a node is up?

I'll bet if you explain what you want to acheive, some here already knows how to do it, rather than helping you do something that seems unusual.
Reply With Quote
  #3  
Old 06-01-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
Quote:
Upon completion of the ping I want the program to either ping again if the # of packets transmitted is equal to the number of packets received or exit if the two values are unequal and information was lost.
why is that for a successful ping you want to re-instantiate the ping on the remote-ip again???
if that was a unsuccessful receive for the ICMP packets delivered i could see some point in pinging again !!!
Reply With Quote
  #4  
Old 06-02-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
That's why I asked for 'what' the OP is trying to accomplish, not how he wants to do it.
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 12:27 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