I would like to Capture/Display a program's output in an ASP page. Here's the program:(TestProg.pl) --------------------------------------------------- print "This line came from my test perl program";
Here is ASP to excute the program that some nice person on this Newgroup gave me. It executes error free but I'd like to display its out in my ASP page. ---------------------------------------------------- <%@ Language="PerlScript" %> <% use strict; use warnings; our( $Response, $Server ); my $file_path = $Server->MapPath ( "/ASPtoPerl/TestProg.pl" ); my $exit_status = system_call_test( "perl $file_path" ) / 256; sub system_call_test { my $call = shift; $Response->Write( "Executing this: '$call'<br><br>" ); my $status = system( $call ); $Response->Write( "'system' returned: '$!'<br>" ); return $status; } %> Thanks In Advance Pete -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>