Solved

CGI on NT

Posted on 2001-07-24
9
183 Views
Last Modified: 2013-12-25
I am looking to find how to tell the program where PERL is located on an NT box. I know !/usr/bin/perl on a UNIX box but don't know the format for an NT box. Additionally I was told the I must "map perl", and have no idea what that means or how to do it. any help??!
Thanks
0
Comment
Question by:msonstein
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 3

Accepted Solution

by:
interiot earned 25 total points
ID: 6313043
To locate perl, look in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState\ActivePerl\620\(default).

By "map", perhaps you mean associate files with a .pl extension with the perl interpretter?  If it is, follow the instructions at http://aspn.activestate.com/ASPN/Reference/Products/ActivePerl/faq/Windows/ActivePerl-Winfaq4.html#How_do_I_associate_Perl_scripts_
0
 
LVL 8

Expert Comment

by:bebonham
ID: 6313597
all you need to do is put the perl bin directory in your path and enviroment variables.

Bob
0
 

Author Comment

by:msonstein
ID: 6313989
interiot,

when to the site you suggested and found pl2bat. I ran that and I got the bat file. I entered that into my html page, but I get a 405 error?? any comments
I can't change the enviro variable, this is a .edu site and I am running a sub-site on thier machine.

thanks
Mark
0
Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

 
LVL 6

Expert Comment

by:andreif
ID: 6334126
I use
!# c:/path/to/perlfolder/bin/perl.exe

and it works!
0
 
LVL 2

Expert Comment

by:shirjeel
ID: 6348584
Dear to use perl on NT try this.
as u give path on linux same u have to give path here like this.

#!c:\perl5\bin\perl

Its mean that the path where the perl.exe is located in ur system.

The path of perl.exe according to above statement is "c:\perl5\bin\perl.exe"

other things are same.

Regards,
Shirjeel.
0
 
LVL 1

Expert Comment

by:paintbrush
ID: 6462313
You can also go to Windows NT command line and do the following:

There is a facility called "file extension associations" that will
work in Windows NT 4.0.  This can be manipulated via the two
commands "assoc" and "ftype" that come standard with Windows NT
4.0.  Type "ftype /?" for a complete example of how to set this
up for perl scripts (Say what?  You thought Windows NT wasn't
perl-ready? :).

ASSOC .pl=PerlScript
FTYPE PerlScript=perl.exe %1 % *

This allows you to simply double click on a  myscript.pl  file and it will execute because now windows NT knows what program to use to process files with .pl extension.

Also if you are running a web server and using it to call perl scripts they will will run fine and you don't have to specify exact location of perl.exe (#!c:\perl5\bin\perl)  in the first line of the script.

Hope this helps!

- paintbrush
0
 
LVL 16

Expert Comment

by:maneshr
ID: 6697089
msonstein,

Did you get the solution you were looking for?

What solution, if any, did you use?

Please let us know.

If you have already found the solution on your own or this question has become obsolete, please go ahead
and delete this question.

Thanks,
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6699409
Please update/finalize this question.

Thanks,

Moondancer
Community Support Moderator @ Experts Exchange
0
 
LVL 1

Expert Comment

by:Computer101
ID: 6903905
Comment from expert accepted as answer.

Thank you
Computer101
E-E Moderator
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

717 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