CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
CGI Data Transfer To Server And Program Execution

 



isrtucson
Deleted

Feb 1, 2001, 2:52 PM

Post #1 of 2 (546 views)
CGI Data Transfer To Server And Program Execution Can't Post

Perl Experts - 02/01/2001
To Whom It May Concern;
I need help finding/synthesizing a Perl Script.
I want to execute a (Pgm.exe file) program say originally
written in FORTRAN or C/C++ (e.g. Numerical Analysis
Program on a server with data supplied from a typical
client HTML form and return the answers of this
(Pgm.exe file) program back to another formatted client
HTML form. I see the process as follows:

8 Step-By-Step Perl Program Process
(1) INPUT The Data To The Client HTML Form (On A Browser)
(2) SUBMIT The HTML Form
(3) CREATE A Formatted ASCII Type Data File ({InDataFilename}.dat)
(4) SUBMIT The Formatted ASCII Type Data File ({InDataFilename}.dat)
To A Specific Server Area
(5) RUN A (Pgm.exe) Program On The Server
(a) READ The ASCII Type Data File ({InDataFilename}.dat)
(b) PERFORM The Necessary Computations
(c) WRITE A New Temporary Output Results ASCII Type Data
File ({OutDataFilename}.dat) On The Server
(d) UPDATE A Record Of Computations File ({ExePgmRec}.dat)
(6) INPUT The Temporary Output Results ASCII Type Data File
({OutDataFilename}.dat) To A Compatible HTML Results Form
(7) DELETE The New Temporary Output Results ASCII Type Data
File ({OutDataFilename}.dat) On The Server
(8) DISPLAY The Compatible HTML Results Form In The
Client's Browser

I would appreciate some help. I can be reached at
duanera@sie.arizona.edu

Thank You

Tommy Hassett, Ph.D.



cpdp
Deleted

Feb 5, 2001, 12:22 PM

Post #2 of 2 (537 views)
Re: CGI Data Transfer To Server And Program Execution [In reply to] Can't Post

It seems to me that you could eliminate some steps and speed up the server process by formatting the data and piping it to your exe with the Perl script. The output of the exe could be captured with in Perl also. Again eliminating the need for dat files. The less I/O function you preform the less strain on the web server.

JpT

http://toarmino.com
Custom Perl
Database Programming

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives