summaryrefslogtreecommitdiff
path: root/misc/server/rush.py
diff options
context:
space:
mode:
authorsjtufs <sjtu_fs@outlook.com>2013-08-25 15:45:55 +0800
committersjtufs <sjtu_fs@outlook.com>2013-08-25 15:45:55 +0800
commitac7633d8149a28af288ac0b850850cef9b13c151 (patch)
tree861fe3d57c114b5ec7f3141679428cc6302d21bc /misc/server/rush.py
parenta53f4d21238d2bccd58a22d7485e54f495dbd55d (diff)
This is alpha
Diffstat (limited to 'misc/server/rush.py')
-rw-r--r--misc/server/rush.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/misc/server/rush.py b/misc/server/rush.py
new file mode 100644
index 0000000..f01804c
--- /dev/null
+++ b/misc/server/rush.py
@@ -0,0 +1,14 @@
+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()