comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Run Fortran executable in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Run Fortran executable in IDL [message #87954] Wed, 05 March 2014 14:50 Go to previous message
justinclouds is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: idl syntax error
Next Topic: Re: Problem changing color table

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:34:26 PDT 2025

Total time taken to generate the page: 0.00447 seconds