Übernahme vom Code aus einem anderen Blog, der immer wieder nicht erreichbar war und ich aber den Test haben wollte. URL mittlerweile unbekannt.
#!/bin/bash
echo "enter server URL. ex: http://foo.bar:8000"
read URL
echo "enter number of connections to start."
read THREADS
for ((N=0; N<$THREADS; N++))
do curl -o /dev/null $URL >> /dev/null 2>&1 &
done
echo "Created "$THREADS" connections to "$URL
echo "Live View"
echo "Press ctrl + c to cancel."
vnstat -l
echo "Press the any button and enter to kill all curl instances!"
read Q
killall -e curl