From 12b1d4bc7e56c7de8bf325f702cff1ae114c4db0 Mon Sep 17 00:00:00 2001 From: Teddy Date: Fri, 23 Aug 2013 20:59:14 +0800 Subject: implemented more in spec --- server/rush.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'server/rush.py') diff --git a/server/rush.py b/server/rush.py index e86bb63..f01804c 100644 --- a/server/rush.py +++ b/server/rush.py @@ -2,9 +2,11 @@ from subprocess import Popen procs = [] try: - for i in xrange(100): - procs.append(Popen(["python", "client.py"])) - while True: pass + for i in xrange(10): + p = Popen(["python", "client.py", str(i)]) + procs.append(p) + #p.wait() + print "done" except KeyboardInterrupt: print "killing" -- cgit v1.2.3