Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29308 Discussions

Starting console application from Website

kai_larsen
Beginner
650 Views

Hi!

I'm trying to find the solution to the following problem: I have a console application that I want to link to from a Web Page, but any time I try to run it, it stops abruptly. It turns out that the application is looking for the external files (parameter file, etc.) in a VS directory rather than the directory where the console application resides.

Any suggestions for how to avoid this?

Thanks so much!

-- Kai :-)

0 Kudos
4 Replies
Steven_L_Intel1
Employee
650 Views
Can you explain in more detail what you want to do? If you simply have an EXE that is a link on a web page, the web browser will download the EXE and run it from a temp folder.

When you are running inside Visual Studio, the default directory for files is the project directory.
0 Kudos
kai_larsen
Beginner
650 Views

My desire is to invoke the fortran console application from a Website in such a way that the console application runs on the server until it is finished. There is no interactivity between the console application and the Website other than that the user can load a status file written by the console application as it continues to run.

What you say about the exe being copied to a temp folder makes sense as the system stops when it does not find the input files that it expects to find in the folder it was in before being copied to a temp directory.

Any and all ideas about how to solve this would be greatly appreciated!

0 Kudos
Jugoslav_Dujic
Valued Contributor II
650 Views
As far as I know, it's doable, but you need a CGI or similar gateway on the server side. It's really not my area of expertise, but check the archives of comp.lang.fortran about the topic; here's another hint. Oh, here's something even more useful:

http://www.ruppweb.org/Xray/comp/cgi_prog.htm

0 Kudos
garylscott1
Beginner
650 Views
You may also need to ensure that appropriate permissions are set to allow execution of such programs. In some environments, these are considered security risks and are disallowed (even with execute priviledges set, the server setup prevents execution externally).
0 Kudos
Reply