WebSphere HTTP Server - how to run a cgi in perl?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > January 2004 > how to run a cgi in perl?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to run a cgi in perl?
Jim

2004-01-19, 8:21 am

i have a cgi-bin directory setup to allow cgi script execution.
my question is: where is the interpreter?

this is my first shot at developing on a 400.
first, can my file have a .pl extension?
if so, does the first line have to point to a PERL interpreter?
if someone could provide me with a 2 or 3 line example, i would really
appreciate it

thank you


jjfall@us.ibm.com

2004-01-19, 8:21 am

There is no native PERL interpreter shipped with OS/400, but there is one
available for download. The PERL 5 interpreter may be downloaded from: http://www.cpan.org/ports/index.html

In order to run Perl, you would need to place the ILE PERL interpreter
program in the PERL5 library and name it PERL. Then, name your Perl
script file with a .pl extension and configure a ScriptAlias to point to
the PERL script file. When a client request comes in, the HTTP server
will call the program in the PERL5 library and point it to the PERL script
file.

Another option would be to run the PERL interpreter in PASE (Aix
environment) as a PASE CGI. If you do this, you need to use an extension
on your PERL scripts other than .pl. Information on running CGIs in PASE
can be found at
http://publib.boulder.ibm.com/iseri...refcgipase.htm.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com