Solved

Executing ".exe" file from CGI Script PERL

Posted on 2003-11-17
1
266 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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

743 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

16 Experts available now in Live!

Get 1:1 Help Now