Current location: Hot Scripts Forums » Programming Languages » Perl » CGI Problem


CGI Problem

Reply
  #1 (permalink)  
Old 08-26-04, 05:23 AM
dimitra dimitra is offline
New Member
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
CGI Problem

Hello,

I am facing a problem related to cgi scripting. Kindly
let me know the solution to it or please refer to some
website so that I can resolve it.

PROBLEM: How to run a .exe file though cgi script?

DESCRIPTION: I have an executable file which I intend
to put on the server. The interface is required to be
built so that the user gets the output of that
executable file on his computer.

Kindly do the needful and oblige.

Sincerely,

Dimitra Atri
Indian Institute of Astrophysics
Bangalore-34, INDIA
Reply With Quote
  #2 (permalink)  
Old 08-26-04, 05:28 PM
SooP SooP is offline
New Member
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Simplest way:


Code:
$prog_output = `X:\\path\\to\\exe\\prog.exe /arguments`;
The variable $prog_output will contain the text output of the executable (assuming it is a console app, and uses STDOUT for text output...)

If you are needing the output of a VISUAL program (windowed) then you may want to check into ASP.net... have yet to see a way to do this in PERL...

Last edited by SooP; 08-26-04 at 05:38 PM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie found a solution to a date problem. mickey_kamer Perl 4 05-09-07 05:54 AM
Count problem kasic ASP.NET 1 10-20-04 12:23 AM
an unusual problem.... fabulosas10 PHP 0 07-16-04 02:03 AM
Interesting Problem!!! ksroadrunner13 ASP 4 07-15-04 04:47 AM
Send.Pl script problem BobbyC Perl 1 05-15-04 01:00 PM


All times are GMT -5. The time now is 03:58 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.