problem to run system(''.exe) on MAc

erasmo mancusi asked on 28 Jan 2012
Latest activity: Answer by erasmo mancusi on 30 Jan 2012

Hi to All I have recently migrate to MacosX 10.7.2 from windows and I use Matlab 2009b. On my mac when I try to run a system command (equivalently bang or unix) appears the following error:

>system('myprogram.xe') bin/bash/ myprogram.exe command not foud. Realy I do not know how to strart to fix this problem any help suggestion is welcome. erasmo

0 comments

Products

    3 answers

    Daniel answered on 28 Jan 2012
    Accepted answer

    It is extremely unlikely that any file ending in .exe will run on anything OS other than Microsoft Windows. You need to find the version of the program written for OS X .

    1 comment

    Walter Roberson on 28 Jan 2012

    Either that or you need to specify which Windows you are co-hosting, such as Parallels. If you have a something like Parallels then it might be possible to fire up a .exe in the co-hosted operating system.

    erasmo mancusi answered on 28 Jan 2012

    Ok! It's not possible to run an exe file in a different suystem but the commands "system" "bang" , "unix" and "dos" too do not work n Matlab (on MACOSX) even if I trie to run an application file generate in the same operative system. Any suggestion is appreciate. Erasmo

    1 comment

    Walter Roberson on 28 Jan 2012

    You might be having path problems. Try

    !echo $PATH

    and check to see whether the directory that has the program is listed in the PATH. If it is not then you will either need to adjust the shell path or name the directory explicitly.

    erasmo mancusi answered on 30 Jan 2012

    Hi, thanks for your help. I solved the problem installing wine on MAC and the command is sistem('wine myprogram.exe'). thx

    0 comments

    Contact us at files@mathworks.com