image thumbnail

Process manager

version 1.1.0.0 (9.5 KB) by Brian Lau
Matlab class for launching and managing asynchronous processes

287 Downloads

Updated12 Aug 2017

From GitHub

View license on GitHub

Editor's Note:This file was selected as MATLAB CentralPick of the Week

A Matlab class for launching and managing processes that run asynchronously from the main Matlab process. This can already be done with something like system('dir &'); but processManager makes it easy to:
> launch and manage multiple processes
> peek to check on the progress of running processes
> capture & display stdout and stderr streams of each process
>问题电动车ent notifications when processes finish

while allowing you to continue working in the main Matlab process.

Installing Steve Eddins's linewrap function is useful for dealing with unwrapped messages. His xUnit test framework is required if you want to run the unit tests.

Example:
p = processManager(“命令”、“平www.google.com');
p.printStdout = false; % To keep the process running silently,
p.check(); % ... Check process status
p.printStdout = true; % When you want to see the io stream again
p.stop(); % Terminate

Go tohttps://github.com/brian-lau/MatlabProcessManagermore info.

Cite As

Brian Lau (2022).Process manager(https://github.com/brian-lau/MatlabProcessManager), GitHub. Retrieved.

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired:EnergyPlus Co-simulation Toolbox

Community Treasure Hunt

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

Start Hunting!
To view or report issues in this GitHub add-on, visit theGitHub Repository.
To view or report issues in this GitHub add-on, visit theGitHub Repository.