dynamic computation of number of allowable cards
[brisk.git] / test / curlbust.sh
1 #!/bin/bash
2 URL=http://dodo.birds.lan/brisk/index.php
3 N=10000
4
5 # TODO parameters
6
7 declare -a cpid
8
9 for i in $(seq 1 $N); do
10     curl -s -o /tmp/out.$i.$$.txt "$URL" &
11     cpid[$i]=$!
12 done
13
14 wait ${pi[*]}
15 ret=$?
16
17 for i in $(seq 1 $N); do
18 #    ls -l /tmp/out.$i.$$.txt
19     rm -f /tmp/out.$i.$$.txt
20 done
21
22 exit $ret