Solved

Executing ".exe" file from CGI Script PERL

Posted on 2003-11-17
1
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where do I learn ES6? 3 81
ICACL switch help. How to include current folder 2 56
Merging text files strings with filename 18 46
Powershell PGP and SFTP 1 18
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…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

730 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