The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 04-25-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,923
Code:
for i in $(seq 1 254)
do
    echo 10.72.169.$i `ssh -o ConnectTimeout=3 root@10.72.169.$i "hostname; cat /etc/redhat-release"
done >>result
Reply With Quote