is it possible to retrieve command window output of parallel worker

조회 수: 17 (최근 30일)
Jim Hokanson
Jim Hokanson 2018년 1월 6일
편집: Walter Roberson 2018년 1월 6일
Is it possible to retrieve the command window output from a worker when using parfeval? Specifically I'd like to catch listener errors that are typically printed out as warnings (normal messages) in the command window.

답변 (2개)

Walter Roberson
Walter Roberson 2018년 1월 6일
  댓글 수: 1
Jim Hokanson
Jim Hokanson 2018년 1월 6일
Thanks for the links. I'm curious as to how pmode works with parfeval. I'll have to give it a try when I get a chance.
The second question seems to be unanswered. At some point I was getting errors on quitting Matlab and wanted to know what was being printed to the command window. Thinking myself clever I setup a diary. Unfortunately, as the poster is pointing out, if you don't close the diary you don't get the output. Thus I've never found a good way of properly capturing the command window output (whether in the client or in a worker).
Although now that I think about it is possible to grab the client's command window text (I think) and thus if I ran the same code on the worker that might work as well ...

댓글을 달려면 로그인하십시오.


Jim Hokanson
Jim Hokanson 2018년 1월 6일
편집: Walter Roberson 2018년 1월 6일
Presumably you could use this when run in the worker ... https://www.mathworks.com/matlabcentral/fileexchange/31438-command-window-text

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by