+
+hosts='www.google.com.ar alf1 alf3 friends65 csi93 action1 action2 brigada34
+brigada33 seinfeld2 trfs194 simpson10 trfs199 action10 trfs193 gazer.com.ar
+swat37 swat38 heman130 dukes196 dukes193 dukes194 simpsons2 simpsons1'
+
+# Comandos
+TPUT=/usr/bin/tput
+EXPR=/usr/bin/expr
+
+# Variables lindas
+RED=`$TPUT setaf 1`
+GREEN=`$TPUT setaf 2`
+NORMAL=`$TPUT op`
+COLS=`$TPUT cols`
+if [ -n "$COLS" ]; then
+ COL=`$EXPR $COLS - 8`
+else
+ COL=72
+fi
+END=`$TPUT hpa $COL`
+
+# Codigo Fancy
+for i in $hosts ; do
+ echo -n "Probando host $i ..."
+ ping -c 3 $i > /dev/null 2>&1
+ if [ "x$?" = "x0" ] ; then
+ echo "$END[$GREEN ok $NORMAL]"
+ else
+ echo "$END[$RED Down $NORMAL]"
+ fi
+done
+
+
+