You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
339 B
Python
15 lines
339 B
Python
import os
|
|
import mitogen.utils
|
|
|
|
@mitogen.utils.run_with_router
|
|
def main(router):
|
|
mitogen.utils.log_to_file()
|
|
|
|
context = None
|
|
for x in range(1, 11):
|
|
print 'Connect local%d via %s' % (x, context)
|
|
context = router.local(via=context, name='local%d' % x)
|
|
|
|
context.call(os.system, 'pstree -s python -s mitogen')
|
|
|