redirect system() output on the fly to estimate progress of external cmd

1 view (last 30 days)
Is there a 'non-messy' (or OK, any?) way to catch the [status, output] = system() on the fly?
Basically I have to run an external tool in C++ (at the moment, modifying it is not an option) to create some file.
In the terminal, progress is returned on the fly. Obviously, in MATLAB (2014b, OS X 10.10.5) the output is only available after completion.
The idea is simply to catch it on the fly such that information and progress can be shown in a uitable/uiwhatever.
(I'm sorry if this was already asked; I searched for this issue but didn't find an answer yet...)

Accepted Answer

Walter Roberson
Walter Roberson on 9 Dec 2015
There is no non-messy way.
You will need to do a process open. You can use popen() from the File Exchange

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!