#!/bin/sh hg clone http://localhost:20059/ copy echo $? test -e copy || echo copy: No such file or directory cat > dumb.py </dev/null & echo $! >> $DAEMON_PIDS http_proxy= hg clone http://localhost:20059/foo copy2 2>&1 | \ sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' echo $? kill $!