Start an *.exe with MDCS
1 view (last 30 days)
Show older comments
Hi,
I would like to start an *.exe on a worker. I know the directory on the worker, where the specific *.exe can be found. However it does not work. The client shows that it is busy but the *.exe is not started on the worker.
Code example:
n = 2;
parfor i = 1:n
dos('$path\*.exe');
end
I hope somebody can help me.
Thanks
0 Comments
Answers (1)
Nagarjuna Manchineni
on 24 May 2018
Hi Christian,
I believe that the execution of executable might not have happened successfully. For verifying that, can you check the results of the dos command. For example,
>> [status,results] = dos('foo.exe') % this will display the status of the execution and the results of the execution
I see that you are using '$path' in the dos command. Make sure that the MDCS server is installed on the Windows machine (workers running on Windows) and the executable is present in the correct location which you are referring to and the MDCS server (workers) have access to the executable.
I will be surprised if there is any other reason that could be the cause of the issue.
Also, I am curious to know how you are verifying that the executable is not launched?
Note that MDCS workers run on their designated cluster machines and might not have access to your local file system unless configured explicitly.
0 Comments
See Also
Categories
Find more on MATLAB Parallel Server in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!