Kela/server/test.sh

10 lines
180 B
Bash
Executable file

#!/bin/bash
trap "kill 0" EXIT
go run . -d 0 &
for i in $(seq 1 9)
do
sleep 0.2
go run . -d $i -b :420$i -u http://localhost:420$i -i http://localhost:420$((i-1)) &
done
wait