subprocess - parallel execution of multiple system commands on a single unix host from windows -


i need execute multiple system commands in parallel on remote unix machine(only through ssh) windows machine.
have used paramiko module ssh remote machine. in same script, have used python subprocess module fire commands in parallel on remote machine.
unable . please let me know how achieve scenario using subprocess module? or other way problem?

my line of code not working : processes.append(popen(task,shell=true)) ----> task getting executed on own windows machine , not getting executed on remote unix machine. gives me error windows error. don't know whether subprocess code work achieving parallel runs here.

but successful in achieving parallel runs same piece of code using subprocess module if copy code unix machine , run script locally.
problem comes when executing code windows machine , doing ssh remote machine.

what fabric ? http://docs.fabfile.org/en/1.10/usage/parallel.html

i use such purposes.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -