I'm converting a procedural script into a parallel script. The existing script dumps the command window output using Diary. So each job's output was nicely lumped together. Now though, as I have tasks running in parallel my log file is very disjointed. Not ideal.
Is there a way I can collect each worker's diary and send it to a dataQueue for storage in a single file? In pseudo code it would be:
parfor ... run task (including command window outputs) send Diary content back to client dataPool for writing to log fileend
Is there some method within my parfor loop of saying 'send(q, thisWorker.Diary)'?
Best Answer