Pete <[EMAIL PROTECTED]> wrote: : : 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" %>
Add the html to generate your page's header here. : <% : 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; : } : %> Add the html to generate your page's footer here. You're done. This shouldn't be all that confusing if you have written other ASP pages. You're just embedding perl instead of the language you normally embed. If you haven't written ASP pages before, you need to find a tutorial on ASP. Checkout this link for some helpful information: http://aspn.activestate.com/ASPN/docs/ActivePerl-5.6/Windows/ActiveServerPag es.html HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>