?
Solved

CCI + Application software

Posted on 1997-05-16
8
Medium Priority
?
183 Views
Last Modified: 2013-12-25
I have a fortran Application which I would like people using the web
to be able to submit data and send it to the Program which uses the
input and then sends the output from the program back to the web.
Similar to unix shell would be
program <input >output      where input is from a form and output goes back to the web.
HOW? What script do I use to set up the interface? Is there a script already in use that can be used?
0
Comment
Question by:ceemgs1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1828021
And your problem is?
-julio
0
 

Expert Comment

by:idstech
ID: 1828022
Is this jeopardy? :)
0
 
LVL 2

Expert Comment

by:n3mtr
ID: 1828023
The web server does all this for you if you have your program setup as a cgi program.  It will send the data from the web form on the standard input and you send out the html data on the output.  You need to be able to read the data from the web server, its in a special format.  As for output you can output HTML or text or a picture.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:ceemgs1
ID: 1828024
Edited text of question
0
 

Author Comment

by:ceemgs1
ID: 1828025
Edited text of question
0
 

Author Comment

by:ceemgs1
ID: 1828026
I have a Frotran program which requires to be put on the web.
I have no access to the source of this program. I would like to
know if there is script available that will handle the form input
and send it to the Fortran program and inturn send the results
back to the web?
I hope this helps more.
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1828027
It is strongly dependent on which input/output format your Fortran program needs/generates.

Technically, it's just a matter of building a CGI program which:

- gets infos from a form;
- reformats infos as needed by the Fortran prog;
- opens a pipe to that prog;
- writes infos to the pipe, reads back the answer;
- formats answer for web publishing;
- writes answer to the web (to stdout).

For further help, you should show (a sample of):

- what comes from the form;
- what the Fortran prog waits for;
- what the F. prog answers back;

- OS you are on, and programming language you'd like to use.

BTW, this seems less a request for advice than a request for a ready program.

Rgds, julio
0
 
LVL 5

Accepted Solution

by:
icd earned 400 total points
ID: 1828028
To give you a 'bare bones' program that you can adapt to your circumstances.

This assumes that the fortran program takes two command line arguments which you have provided from a form as 'par1' and 'par2'. The output of your fortran program is output in a <PRE> tag in an HTML document.

--- cut here ---
#!/usr/local/bin/perl
require "cgi-bin.pl";
&ReadParse;

@output = `yrFortran $in{'par1'} $in{'par2'}`;

print <<__END__;
Content-type: text/html

<html>
<head></head>
<body>
  <pre>
  @output
  </pre>
</body>
</html>
__END__
1;
--- end ---




0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question