parallel computations: subprocess.Popen(...).communicate()[0] does not work with multiprocessing.Pool
Miki Tebeka
miki.tebeka at gmail.com
Sat Jun 11 11:23:12 EDT 2011
Greetings,
> cmd1 = "/usr/local/bin/matlab ... myMatlab.1.m"
> subprocess.Popen([cmd1], shell=True, stdout=subprocess.PIPE).communicate()[0]
Try a list of arguments as the command to run.
subprocess.Popen(["/usr/local/bin/matlab", ... "myMatlab.l.m"] ...)
If you can switch to 2.7, you'll be to use check_output (http://docs.python.org/library/subprocess.html#subprocess.check_output)
HTH
--
Miki Tebeka <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com
More information about the Python-list
mailing list