def start_multi_client(num):
for i in range(int(num)):
dirc = 'client%s' % i
with cd(dirc+'/loopix/loopix'):
run("git checkout %s" % BRANCH)
run('git pull')
run('twistd -y run_client.py')
pid = run('cat twistd.pid')
print "Run Client on %s with PID %s" % (env.host, pid)
评论列表
文章目录