Run Fortran executable in IDL [message #87954] |
Wed, 05 March 2014 14:50  |
justinclouds
Messages: 25 Registered: December 2012
|
Junior Member |
|
|
I need to run a Fortran executable eros.exe. This Fortran executable uses an input file EROS.INP and produces an output files EROS.OUT and EROS.PLT. The executable works just fine (outside of IDL) and you can see that the output files are updated. The objective to run this within IDL is to change the input parameters in a loop. I tried the 'spawn' command like this:
spawn, 'C:\EROS.exe < EROS.inp', /log_output
It seems to want to run as I can see a shell process starting but get this error:
run-time error F6501: READ(EROS.INP)
- end of file encountered
Any ideas on how to get this to work?
EROS.INP is like an ini file and contains text and numerical values.
|
|
|
|
|