Solved

Executing ".exe" file from CGI Script PERL

Posted on 2003-11-17
1
267 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

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…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to count occurrences of each item in an array.

911 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now