Solved

Executing ".exe" file from CGI Script PERL

Posted on 2003-11-17
1
270 Views
Last Modified: 2013-12-25
Hi,

I have a Client - Server Connection on Unix.

I want the " .exe" file to be executed on the server and its output which is a text file to be displayed on client's comp. But I donno, how to call that exe file from a CGI/PERL script.

Can anyone Help me please!
0
Comment
Question by:maratmu
1 Comment
 
LVL 18

Accepted Solution

by:
kandura earned 50 total points
ID: 9767553
you can use backticks (`) or the qx( ) operator:

    $output = `/path/to/your.exe arguments`;

if your arguments contain special characters that you don't want Perl to interpolate, then use this:

    $output = qx'/path/to/your.exe arguments';

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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