external text interface program will work on R2009b, but not R2012a

1 view (last 30 days)
Hi all, im trying to run an external program with a fortran text interface through matlab [ie system('program')] on a unix HPC cluster. This works fine on R2009b, but will not work on R2012a. Generally it runs without an error, but no text appears and it does not wait for any input, it just runs and exits. I have tried running it in an xterm window [ie system('xterm -e program')] and it does the same thing. I can't find anything in the release notes to explain this; does anyone know why this might be, and if there is a workaround? I need to use the R2012a version for license reasons.
Cheers, Andy
  4 Comments
Andy
Andy on 14 Jan 2013
Crackin, cheers Walter, the gfortran workaround from matlab seems to work a treat. Problem solved.

Sign in to comment.

Accepted Answer

Andy
Andy on 14 Jan 2013
Credit to Walter Roberson for pointing me at this, solution was found at http://www.mathworks.co.uk/matlabcentral/answers/44388-or-system-or-unix-input-redirection.

More Answers (0)

Categories

Find more on Fortran with MATLAB 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!