If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > using ping

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-04, 06:27
kristy kristy is offline
Registered User
 
Join Date: Oct 2004
Posts: 2
using ping

I'm writing a shell script to help stabilize my unstable connection. The script pings my router n times (given in a config file) and returns a message based on whether it was successful or not. The problem however, is that I would like to print out a message for example every 100th package ping has sent. But is this possible? I could create a loop, that would lopp n times, and then print out a message based on that, but then I would have to restart ping n times too, which will use a lot more resources than calling ping only once.

Am I looking at something that's not possible? Help and ideas appreciated.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On