Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Executing ".exe" file from CGI Script PERL

Posted on 2003-11-17
1
Medium Priority
?
289 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 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

782 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