All pastes #389734 Raw Edit

multi_ping

public shellscript v1 · immutable
·published 2007-03-10 22:28 UTC
rendered paste body
#!/bin/bashif [ $1 = "-h" ]then  echo usage: $0 [ max. ping parallel] [url]  exit 0fin=${1-500}url=${2-www.google.de}echo $urlping $url &typeset -i i=0while [ $i -lt $n  ]do  ping $url > /dev/zero &  i=`expr $i + 1`  echo $i  sleep 1done