#!/bin/sh N=0 while [ $N -lt $1 ] do psql -f test_run_small.sql test >/dev/null & N=`expr $N + 1` done wait