PING script

Asked by aneesh on 2010-08-28

How can create a ubuntu script for ping to many ip address at a time ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Last query:
2010-08-28
Last reply:
2010-08-28

If you want to ping in the same instant you need an app using thread if you want sequentially ping more than one address you can try something like this:

#!/bin/bash

ping -c 1 -W 1 192.168.1.201
ping -c 1 -W 1 192.168.1.202
...
...

Can you help with this problem?

Provide an answer of your own, or ask aneesh for more information if necessary.

To post a message you must log in.