PING script

Asked by aneesh

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:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

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.