Forum Moderators: coopster & phranque

Message Too Old, No Replies

Execute perl script from asp

         

TRACEYR

10:28 pm on May 30, 2002 (gmt 0)

10+ Year Member



I have WINDOWS 2000 and perl running on the PC

How do i execute the perl script within
HTML and within ASP code

Thanks

DrDoc

7:48 am on Jun 1, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I assume that you're running a web server as well.

It's easy to execute a Perl script from a HTML page. You can do this using SSI (depending on server configuration) or just open a script using a link or a form.

SSI:
<!--#exec cgi="path_to_script/myfile.pl"-->

As far as ASP goes, I honestly don't know how to do it, but I'm sure it's possible. And it shouldn't be too hard.

TRACEYR

10:03 pm on Jun 2, 2002 (gmt 0)

10+ Year Member



Does this mean i would have to have my html pages as shtml

Thanks

ndjp

1:58 am on Jun 15, 2002 (gmt 0)

10+ Year Member



TRACEYR - yes and no. It means that your page must past through the shtml parser. You can pass ANY extension you want through it, even html. Keep in mind though browsers only pick up certain MIME types.

It also means more overhead when the server is processing it because now it must run through an additional parser it did not have to before.

Make sense?

korkus2000

3:08 am on Jun 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is your perl script doing? You may be using perl for something easily reproduced in asp. You should think about recreating it in asp. If you think it is too much for the server side script then write a component. ASP was ment to be an alternative to cgi.