Start an *.exe with MDCS

1 visualización (últimos 30 días)
Christian Alteheld
Christian Alteheld el 22 de Mayo de 2018
Respondida: Nagarjuna Manchineni el 24 de Mayo de 2018
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

Respuestas (1)

Nagarjuna Manchineni
Nagarjuna Manchineni el 24 de Mayo de 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.

Categorías

Más información sobre MATLAB Parallel Server en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by