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

5 Ansichten (letzte 30 Tage)
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...)

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by