BASH - Bulk Ping IP.sh: Difference between revisions

From IT-Arts.net
m Text replacement - "Category:Post-It" to "Category:Wiki"
m Text replacement - "Category:Wiki" to "Category:Wiki '''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]''''' "
 
Line 1: Line 1:
[[Category:Wiki]]
[[Category:Wiki]]
'''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]'''''


  <nowiki>
  <nowiki>

Latest revision as of 07:16, 17 January 2026


Return to Wiki Index


#!/bin/sh

# IP LIST TO PING
IP="
8.8.4.4
8.8.8.8"


for i in $IP
do
    ping -c 2 $i >/dev/null && echo  $i" ".$(host $i)." is UP !" || echo $i" is dead"
    
    sleep 2
done


exit 0