the heading is very generic but issue might not be.
I have a script that is compiling some code with the parameters passed from a file(xls file). Based on number of configurations on xls i have to compile certain files. I want to store result of each compilation(stdout and stderr) in text files whose names comes from configuration.
I have been able to do all this but to speed up things i want to run all the compilation in parallel. Is there a way to do this?
Sample file..
for n in num_rows: # num_rows store all the rows read using xlrd object
parameters_list = [...] # has all the parameters read from xls
.
.
.
logfile = ...txt #name is based on name read from xls
p = subprocess.Popen(parameters_list, stderr=logfile)
p.wait()
logfile.close()
I have to wait for each process to be over before closing the file.
My problem might be too long but any help or leads are welcomed.