Solved

perl.pl to perl.exe

Posted on 1997-08-09
3
566 Views
Last Modified: 2013-12-25
Dear Experts

  I am developing a cybermall website with plenty of
cgi scripts to handle forms inputs.The  cgi scripts
are witten in perl language .I have just downloaded
the perl  interpreter (compiler) from the web .My questions:

1) Do I have to upload the whole perl interpreter(almost two megabytes) to my internet service provider',s server ? The perl source code has *.pl extention and therefore to run them one should write" perl.exe program.pl",can't I just make them exe and upload them without uploading the interpreter itself to the server?.

2) In either ways, what should the html "action" tag (when submiting the form ) look like in order to call the perl script(program.pl),given that  my files are located in http://host/mydirectory,should it be
 action=http://host/mydirectory/perl.exe program.pl
or should it be action=http://host/mydirectory/program.exe
or should it be action=http://host/mydirectory/program.cgi ,and in the later case how do i convert program.pl to program.cgi?

Thank you for your patience and support
fadi
0
Comment
Question by:fadih
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
faster earned 200 total points
ID: 1829567
1) The server must install Perl.
2) the action should be action=http://host/mydirectory/program.pl.

There are some config you need to do on the server, this depends on what kind of the server your service provider is using.  If WinNT with information server, the admin should create a shell cgi directory and put your pl scriplts there.  Actaully, unless your service provider and you are from the same company, otherwise it is unlikely that they will allow you to install perl.  But probably they already have perl installed and then you just need to copy your scripts to the right place (assume that the ISP allow you to do so).

Good luck.
0
 

Author Comment

by:fadih
ID: 1829568
Good answer faster but what about scripts with cgi extention
like program.cgi where do they fit; in the action tag or somewere else?
0
 
LVL 7

Expert Comment

by:faster
ID: 1829569
It is the same (extension is just extension).  If you are using windows NT server, then you need to associate .cgi with perl.exe (perl installation program will associate .pl with perl.exe automatically, unless you use .cgi as the default extension for perl scripts).  If you are not using perl, i.e. the .cgi is itself an exe, then you need to do nothing, jut put the cgi in common cgi directory (not shell cgi), provided it is information server.  On unix you need not do this, the first line will tell unix where to get perl.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question