2 [ -f bidirtest-data ] || head -c 10000 /dev/urandom >bidirtest-data
3 rm -f bidirtest-copy-client bidirtest-copy-server
4 ./test 9999 <bidirtest-data >bidirtest-copy-server 2>bidirtest-server.log &
5 ./test localhost 9999 <bidirtest-data >bidirtest-copy-client 2>bidirtest-client.log
7 cmp bidirtest-data bidirtest-copy-server
8 cmp bidirtest-data bidirtest-copy-client