> What is the "Standard Location" ??

You have a point. I was thinking c:\perl\bin   I guess I've been using
Active Perl for so long.

The reason I asked if it was possible to override the shebang line in
Tomcat was I have used Apache for Windows.  It has two options. The
first is one can put a shebang line like:
  #!c:\perl\bin\perl.exe  or #!c:/perl/bin/perl.exe
OR
you can put in an entry in a configuration file the path to perl to use
INSTEAD. This way, if perl is in another location on the end user's
Windows machine, you only have to change one place (not on each perl
script) and Apache will use that location instead.  

I'm new to Tomcat, and trying come up to speed as fast as I can, and was
hoping for the same capability.

>  I do *not* have a drive letter on my SHEBANG line on my
> WinTel boxes.  It does not need it. 

I have found that if the drive letter on the shebang line is omitted,
USUALLY the WEB server presumes perl is on the same drive as the WEB
server.  That is, and I use an Apache example here, if the windows
shebang line is #!/perl/bin/perl.exe  (direction of slashes is
unimportant) and the Apache WEB server is installed on D: and the cgi
application is installed on D: as well, then Apache will look on D:,
since at that point, it is the "default drive".

So apparently you are saying that Tomcat does not allow you to make a
configuration entry to tell where to find perl and not use the shebang
line?

...Dennis



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Walter Torres
> Sent: Tuesday, October 21, 2003 12:58 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: #! line in Tomcat
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of
> > Dennis Simpson
> > Sent: Tuesday, October 21, 2003 12:33 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: #! line in Tomcat
> >
> >
> > It appears Tomcat may require a #!c:\perl\bin\perl.exe line
> at the top
> > of each cgi script.
> 
> otherwise know as the SHEBANG line.
> 
> 
> > Is there a way to tell Tomcat to ignore the first line and
> always run
> > perl from the standard location, so we don't have to modify the
> > scripts?
> 
> What is the "Standard Location" ??
> 
> I didn't realize there was one?
> 
> My "standard location" on my Linux and Wintel boxes is...
> 
>     /usr/local/bin
> 
> (yes folks you read this correct!
>  I do *not* have a drive letter on my SHEBANG line on my
> WinTel boxes.  It does not need it.  Assuming you install it, 
> and other support app "correctly")
> 
> <ducking for cover now>
> 
> I know that the Perl installer makes it C:\perl, but then, is
> that what your referring to as "standard".
> 
> Anyway, I don't think you can change that.
> 
> The reason that line is there is because of all the "standard
> locations" perl can sit.
> 
> 
> 
> _______________________________________________
> Perl-Win32-Web mailing list [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to