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

1 visualizzazione (ultimi 30 giorni)
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...)

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by