X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp2.git/blobdiff_plain/129df366204554f3e11e14a65876aa941a6aede5..bc77cda11a4379cac9260a00cbfb781b6db6c5c4:/pingall diff --git a/pingall b/pingall index 6186a48..974c249 100755 --- a/pingall +++ b/pingall @@ -1,10 +1,10 @@ #!/bin/sh -hosts="www alf3 friends65 csi193 action1 action2 brigada34 brigada33 seinfeld2 trfs194 hosta hostb hostc trfs193 swat37 swat38 heman130 dukes196 dukes193 dukes194 simpsons2 simpsons1 simpsons129 heman130 host hostt telnet seinfeld1 hosf hostf ftp" +hosts="www alf3 friends65 csi193 action1 action2 brigada34 brigada33 seinfeld2 trfs194 hosta hostb hostc trfs193 swat37 swat38 heman130 dukes196 dukes193 dukes194 simpsons2 simpsons1 telnet simpsons129 heman130 ftp seinfeld1" for host in $hosts do echo -n "Pingueando $host: " - res=`ping -c1 $host | grep from` + res=`ping -W1 -c1 $host | grep from` if [ -z "$res" ] then echo 'ERROR!'