#!/bin/sh hg clone http://localhost:$HGPORT/ copy echo $? test -d copy || echo copy: No such file or directory cat > dumb.py </dev/null & echo $! >> $DAEMON_PIDS # give the server some time to start running sleep 1 hg clone http://localhost:$HGPORT/foo copy2 2>&1 | \ sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' echo $? kill $!