added python servertest and launch script, modified server and display

master
Bartosz Kostrzewa 2010-11-15 12:31:29 +01:00
parent 2b596aee7d
commit f0ed60e5d2
3 changed files with 25 additions and 0 deletions

View File

@ -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

Binary file not shown.

Binary file not shown.