BASH - Bulk Ping IP.sh: Difference between revisions

From IT-Arts.net
No edit summary
 
m Text replacement - "Category:Wiki" to "Category:Wiki '''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]''''' "
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Post-It]]
[[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