Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

CGI/Perl External Program Question

I am very, very, very new to CGI / Pearl, so I apologize in advance for my vast

ignorance on this subject. My task is to find a way interface a CGI program

with a DOS program sitting on a UNIX server. Here are the specifics:



From a web browser, a user will start up a DOS program sitting on a UNIX

server. The DOS program will send output to the user's web browser that

will be displayed as HTML. The user will then enter some input into the web

browser, which will then be sent back to the DOS program for processing.

Next the DOS program will send output, based on the user's last input, back

to the user's web browser. And so on.



First let me say that I'm not sure how they managed to get this DOS program

to run on a UNIX machine, but they apparently have. I'll have to get more

details on this, let's just assume that it's possible for now.



So in conclusion, is this possible? If so, can someone help me understand

how to do this? Code examples would be greatly appreciated since I don't

really understand much about Pearl yet. Again, I'd be tremendously thankful

if someone could help solve this problem, or perhaps point me to a site where

I might be able to get some help.



-Brent




Comments

  • See if the DOS program has/can use a CGI library.



    If not then the best alternative would be to a "mid-app" like a Perl script to interface with the user via CGI and then have a "pipe" between the Perl script and DOS/Unix app.










Sign In or Register to comment.