Process manager

バージョン 1.1.0.0 (9.85 KB) 作成者: Brian Lau
Matlab class for launching and managing asynchronous processes
ダウンロード: 321
更新 2022/12/6

編集メモ: This file was selected as MATLAB Central Pick 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
> issue event 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('command','ping 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 to https://github.com/brian-lau/MatlabProcessManager more info.

引用

Brian Lau (2024). Process manager (https://github.com/brian-lau/MatlabProcessManager), GitHub. 取得済み .

MATLAB リリースの互換性
作成: R2008a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersGet Started with MATLAB についてさらに検索
タグ タグを追加
謝辞

ヒントを与えたファイル: EnergyPlus Co-simulation Toolbox

Community Treasure Hunt

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

Start Hunting!

GitHub の既定のブランチを使用するバージョンはダウンロードできません

バージョン 公開済み リリース ノート
1.1.0.0

Update description.

1.0.0.0

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。