#!/bin/sh [ $# -lt 2 ] && { echo "usage: wwwbench numreq [http://]hostname[:port]/path" >&2 exit 1 } while :; do ab -n $1 -c $1 $2 || exit 1 done .