Solved

perl.pl to perl.exe

Posted on 1997-08-09
3
564 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

919 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now