Personal tools
You are here: Home Documentation Developers Zope Concurrent Writes Strategy testrun.sh

testrun.sh

by T. Kim Nguyen last modified Oct 24, 2008 02:19 PM

./testrun.sh http://google.com 2 out

(( $# == 0 )) && echo "$0 <url> <count> <outfileprefix>" && exit
url=$1
count=$2
outfileprefix=$3
for (( i=1; i <= $count ; i++))
do
  echo "curl $url >& ${outfileprefix}$i &"
  curl $url >& ${outfileprefix}$i &
done
echo -n "Waiting..."
wait
echo "done"



Document Actions
  • Print this
  • Bookmarks