Silverfrost Forums

Welcome to our forums

Fortran CGI that calls another Fortran program fails

10 Oct 2008 1:27 #3890

I have a Fortran CGI program that calls a few other Fortran program via cissue(OtherFortranProgram, iFAIL). This Fortran CGI program has been working on Windows 2000 Server with IIS x.x

Recently, we upgraded our server to Windows 2003 with IIS 6.0. Since then, the external Fortran programs will not run, although the CGI itself seems to run properly.

When I print out the iFAIL after the cissue line, iFAIL =0. That should mean OtherFortranProgram was invoked. I tried various experssions in the OtherFortranProgram, such as 'E:\Fortran\OtherFortranProgram(.exe)' and just 'OtherFortranProgram(.exe)'. All attempts failed.

I gave 'Full Control' to everyone to the Folder where OtherFortranProgram and CGI reside.

When went wrong? How came it worked before and not anymore?

Aside, I saw in the Forum that Start_program@ is an alternative to Cissue, but I could not find this function in the help file from my ftn95 compiler. I could only find Start_process@.

I tried to test start_program@ using i=start_program@('dir',''). The program will not compiled.

I tried to test start_process@ using i=start_process@('dir',''). i returned as -1. But, then, I tried i=start_process@('anotherFortranProgram,'') and worked. May be I need to change all the cissue command to start_process and problem will be solved?!

Let me try and report back here later.........

10 Oct 2008 2:34 #3891

You can use start_process@ or start_pprocess@. Both are documented in the help file under start_process@.

10 Oct 2008 6:56 #3893

I just finished my testing. start_process@ is the KEY! My fortran CGI can call external fortran programs (*.exe compiled in Fortran) using start_process@!

dc7669

Please login to reply.