Skip to content

Instantly share code, notes, and snippets.

@li-ch
Created July 22, 2016 05:05
Show Gist options
  • Save li-ch/b8a0a90f51e2ee84d14069eb0c4928a8 to your computer and use it in GitHub Desktop.
Save li-ch/b8a0a90f51e2ee84d14069eb0c4928a8 to your computer and use it in GitHub Desktop.
start servers
#!/usr/local/bin/python
import subprocess
procs = []
pids = []
i = 0
for size in [5, 20, 93]:
proc = subprocess.Popen(["./ver-{}/cloud_burst/target/release/server".format(size), "127.0.0.1:1000{}".format(i)],
shell=True)
i += 1
procs.append(proc)
pids.append(proc.pid)
print pids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment