blob: f01804c8a8b1e1a179e845b606ecf507ed45414b (
plain) (
tree)
|
|
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()
|