summaryrefslogblamecommitdiff
path: root/server/rush.py
blob: f01804c8a8b1e1a179e845b606ecf507ed45414b (plain) (tree)
1
2
3
4
5
6
7
8
9



                            




                                                  




                         
from subprocess import Popen
procs = []

try:
    for i in xrange(10):
        p = Popen(["python", "client.py", str(i)])
        procs.append(p)
        #p.wait()
    print "done"

except KeyboardInterrupt:
    print "killing"
    for p in procs:
        p.kill()