replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Fortran CGI that calls another Fortran program fails
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fortran CGI that calls another Fortran program fails

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
dc7669



Joined: 08 Oct 2008
Posts: 6

PostPosted: Fri Oct 10, 2008 2:27 pm    Post subject: Fortran CGI that calls another Fortran program fails Reply with quote

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.........
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Fri Oct 10, 2008 3:34 pm    Post subject: Reply with quote

You can use start_process@ or start_pprocess@. Both are documented in the help file under start_process@.
Back to top
View user's profile Send private message AIM Address
dc7669



Joined: 08 Oct 2008
Posts: 6

PostPosted: Fri Oct 10, 2008 7:56 pm    Post subject: start_process@ is the key! Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group