added python servertest and launch script, modified server and display
parent
2b596aee7d
commit
f0ed60e5d2
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
processes=100
|
||||||
|
i=0
|
||||||
|
|
||||||
|
while [ "$i" -lt "$processes" ]
|
||||||
|
do
|
||||||
|
python servertest.py "$i" &
|
||||||
|
pids=( ${pids[@]} $! )
|
||||||
|
echo ${pids["$i"]}
|
||||||
|
i=$((i+1))
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
#wait for input to exit
|
||||||
|
read -n1 -s
|
||||||
|
|
||||||
|
#kill our background pythons
|
||||||
|
i=0
|
||||||
|
while [ "$i" -lt "$processes" ]
|
||||||
|
do
|
||||||
|
echo "${pids["$i"]}"
|
||||||
|
kill "${pids["$i"]}"
|
||||||
|
i=$((i+1))
|
||||||
|
done
|
BIN
frameserver/test
BIN
frameserver/test
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue