How to call perl programs from ASP page

From: Perldiscuss - Perl Newsgroups And Mailing Lists (pete.mitchell_at_rogers.com)
Date: 01/25/04


Date: 25 Jan 2004 16:34:53 -0000
To: beginners@perl.org

Hi,
I'm new to Perl and I'm trying to excute/call a perl program from Perl
Script in an ASP page.
I've loaded ActivePerl v5.6 on my Microsoft Win2000 webserver and I can
execute lots of Perl code in my ASP pages with no problem, but I need to
call an external program and don't know the correct systax.

In my ASP page:
-----------------------------------------------------
<%@ LANGUAGE = PerlScript%>
$Response->write("Pete Was Here <br>"); #Works Fine

system("MakeFile.pl"); #Doesn't execute the script
-----------------------------------------------------

The file "MakeFile.pl" is in the same folder as the above ASP page.

"MakeFile.pl" executes successfully from the command line.
I have even tried calling "MakeFile.pl" from the command line by calling a
second program called "Test.pl" that has the line:
system("MakeFile.pl");
This successfully executes the "MakeFile.pl" program.

How do I do the same thing from an ASP page ?????



Relevant Pages

  • How execute DTS from a ASP
    ... I have found the script that allow to execute the DTS from asp but I have a ... Dim oPkg, oStep, sErr, bSuccess ...
    (microsoft.public.sqlserver.dts)
  • Re: Calling a remote ASP script from my Perl Script -libwww?
    ... > process the HTTP Post results which that other remote script handles. ... > to call another script from Perl. ... > to send some of that data to a third party ASP script and interpret the ... my $cgi = new CGI; ...
    (comp.lang.perl.misc)
  • Re: Messsage posting
    ... You don't need to script it as any HTML page opens "with the top on the ... ASP, PHP, Perl - depends on your server. ...
    (comp.lang.javascript)
  • Re: A Lot of Questions from a Noob
    ... Apache, javascript, regex, XML, etc.) I reached the level of ... they work, e.g. Ruby, PERL, Zend, SOAP. ... ASP is a serverside solution. ... Personally I like PHP and/or Perl ...
    (comp.lang.php)
  • Re: Using Server.CreateObject with ASP and IIS 5.0
    ... Active Server Pages, ASP 0113 ... The maximum amount of time for a script to execute was exceeded. ...
    (microsoft.public.office.developer.web.components)