]> git.llucax.com Git - z.facultad/75.43/tp2.git/blobdiff - pingall
* Agrego host_por_red
[z.facultad/75.43/tp2.git] / pingall
diff --git a/pingall b/pingall
index 6186a48f9a42a6d77b2cee6516c28a884465474a..974c2492bada2271fb1951cb487b4a96b1529747 100755 (executable)
--- a/pingall
+++ b/pingall
@@ -1,10 +1,10 @@
 #!/bin/sh
 #!/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: "
 
 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!'
        if [ -z "$res" ]
        then
                echo 'ERROR!'