{"id":28142908,"url":"https://github.com/brian-lau/matlabprocessmanager","last_synced_at":"2025-08-17T10:35:26.649Z","repository":{"id":12588898,"uuid":"15259664","full_name":"brian-lau/MatlabProcessManager","owner":"brian-lau","description":"Matlab class for launching and managing asynchronous processes","archived":false,"fork":false,"pushed_at":"2022-12-06T19:10:51.000Z","size":43,"stargazers_count":23,"open_issues_count":6,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-01T00:30:41.760Z","etag":null,"topics":["java","matlab"],"latest_commit_sha":null,"homepage":null,"language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brian-lau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-17T16:27:02.000Z","updated_at":"2025-04-16T03:01:58.000Z","dependencies_parsed_at":"2023-01-11T18:21:38.911Z","dependency_job_id":null,"html_url":"https://github.com/brian-lau/MatlabProcessManager","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/brian-lau/MatlabProcessManager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian-lau%2FMatlabProcessManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian-lau%2FMatlabProcessManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian-lau%2FMatlabProcessManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian-lau%2FMatlabProcessManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brian-lau","download_url":"https://codeload.github.com/brian-lau/MatlabProcessManager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian-lau%2FMatlabProcessManager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270837405,"owners_count":24654375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","matlab"],"created_at":"2025-05-14T20:16:54.552Z","updated_at":"2025-08-17T10:35:26.642Z","avatar_url":"https://github.com/brian-lau.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# processManager\n\nA 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 \u0026');` but processManager makes it easy to:\n\n* launch and manage multiple processes\n* check on the progress of running processes\n* capture \u0026 display `stdout` and `stderr` streams of each process\n* issue event notifications when processes finish\n\nwhile allowing you to continue working in the main Matlab process.\n\nSome toy examples are illustrated below and in the [wiki](https://github.com/brian-lau/MatlabProcessManager/wiki). A more elaborate application is a [Matlab interface](https://github.com/brian-lau/MatlabStan) that does MCMC sampling using [Stan](http://mc-stan.org/).\n\n## Installation \u0026 Examples\nDownload [processManager](https://github.com/brian-lau/MatlabProcessManager/archive/master.zip), add the m-file to your Matlab path, and you're ready to go.\n\nprocessManager was developed and tested on OSX with Matlab 2012a, but should work on all platforms that Matlab supports, so long as it is running \u003e=R2008a (for handle objects) with JDK \u003e=1.1 (this will always be true unless you changed the default JDK).\n\n### Optional\nInstalling Steve Eddins's [linewrap](http://www.mathworks.com/matlabcentral/fileexchange/9909-line-wrap-a-string) function is useful for dealing with unwrapped messages. His [xUnit test framework](http://www.mathworks.com/matlabcentral/fileexchange/22846-matlab-xunit-test-framework) is required if you want to run the unit tests.\n\n### Examples\n\n#### Running a simple command\n```\np = processManager('command','nslookup www.google.com');\n```\n\n#### Command with ongoing output\n```\np = processManager('command','ping www.google.com');\n\n% To keep the process running silently,\np.printStdout = false;\n\n% ... Check process status\np.check();\n\n% When you want to see the io stream again\np.printStdout = true;\n\n% Terminate\np.stop();\n```\n\n#### Multiples processes using object arrays\nYou can pack multiple processes into an object array for easy management.\n```\np(1) = processManager('id','google','command','ping www.google.com','autoStart',false);\np(2) = processManager('id','yahoo','command','ping www.yahoo.com','autoStart',false);\np.start();\n\n% Tired of hearing about second process\np(2).printStdout = false;\n\n% You can check the status of individual processes\np(2).check();\n\n% Or all processes\np.check()\n\n% ... if you want to hear about an individual process later,\np(2).printStdout = true;\n\n% Terminate all processes\np.stop();\n```\n\n## Need help?\nYou may be able to find a solution in the [wiki](https://github.com/brian-lau/MatlabProcessManager/wiki/Potential-gotchas). Otherwise, open an [issue](https://github.com/brian-lau/MatlabProcessManager/issues).\n\nContributions\n--------------------------------\nCopyright (c) 2017 Brian Lau [brian.lau@upmc.fr](mailto:brian.lau@upmc.fr), see [LICENSE](https://github.com/brian-lau/MatlabProcessManager/blob/master/LICENSE.txt)\n\nPlease feel free to [fork](https://github.com/brian-lau/MatlabProcessManager/fork) and contribute!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrian-lau%2Fmatlabprocessmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrian-lau%2Fmatlabprocessmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrian-lau%2Fmatlabprocessmanager/lists"}