[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

CCI + Application software

Posted on 1997-05-16
8
Medium Priority
?
184 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
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

656 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