Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Compiling .ipl --> .cgi
Hrd2Imagin
Anybody know of how to compile an .ipl file to create the .cgi? I'm guessing that it is just a command line statement, but I can't seem to figure it out!
Also, do I need a seperate perl IDE or compiler, or does Teamsite have the capabilities to do this?
Thanks!
Find more posts tagged with
Comments
Migrateduser
There's no perl "compiler" per se - perl is an interpretive language. There's really no difference at all between a file that has a .ipl extension and a file that has a .cgi extension as far as perl is concerned. My predecessor here mistakenly named a lot of perl scripts as .cgi scripts - there's not one line of pure CGI code in the scripts, but they run just fine as standard perl scripts with a .cgi extension. What makes a CGI script a CGI script is the code you use in the script to display form data on an HTML page. So the simplest answer to your original question is to rename the file from .ipl to .cgi.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
james1
Smitty is correct in that
Perl
does not distinguish between a .cgi file and .ipl file. However, if you are on Windows, there is a significant distinction.
IIS
may not acknowledge that .ipl files are meant to be invoked as CGI programs and therefore they may not function as CGI's. Therefore, in TeamSite, for our Perl-based CGI scripts, we have a bona fide .cgi file (e.g. "show_env.cgi") which simply invokes the accompanying .ipl script (e.g. "show_env.ipl") with iw-perl.
If you are on Windows, and if you write a CGI program in Perl, and if your .ipl CGI is not working correctly, then you may want to copy your .ipl file (e.g. "mycgi.ipl") to IWHOME/httpd/iw-bin, and then in that same directory copy show_env.cgi to "mycgi.cgi". The .cgi program figures out what .ipl to invoke based on its own filename (substituting ".ipl" for ".cgi"), so the copy should invoke your "mycgi.ipl" script.
If you're not on Windows, then never mind! :-)
Good luck
-- James
--
James H Koh
Interwoven Engineering
WORKFLOWdude
When I open show_env.cgi in a text editor, why is it binary?
james1
> When I open show_env.cgi in a text editor, why is it binary?
Because it is a binary (on Windows).
If you are looking for the Perl script, then open show_env.ipl.
-- James
--
James H Koh
Interwoven Engineering
chunk
You can use utilities to make a binary of your Perl code, but I've never tested it with TeamSite.
for more info see
http://www.perl.com/pub/a/2001/06/27/ctoperl.html