Equivalent of windows' cmd on a mac - How to use java.lang.ProcessBuilder to launch an executable?
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I have the following code (example adapted from http://uk.mathworks.com/matlabcentral/fileexchange/30478-xfoil-matlab-interface ):
if ispc
arg = {'cmd', '/c',sprintf('"%s < %s"',executableName,actionsFileName), '>','nul'};
else
error('Unix version not yet implemented!')
end
PB=java.lang.ProcessBuilder(arg);
this.Process = PB.start;
Which I'd like to expand slightly to work on a mac. Does anyone know what the equivalent argument ('arg') should be please?
And will the ProcessBuilder work equivalently on a mac?
Thanks for any help!
Tom
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Compiler SDK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!