Script isn't written by me, compiled C code.  I'll probably modify the
CGIServlet to include it in the env that execs the script, if possible.
Seems like a better idea than having to modify every CGI or having to modify
every version as I upgrade.

> -----Original Message-----
> From: Filip Hanik [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 11:36 AM
> To:   Tomcat Users List
> Subject:      RE: CGI environment vars
> 
> Looking at the source code of the CGIServlet, these variables are not set
> anywhere.
> My recommendation would be that you modify this servlet to fit your needs,
> or even easier,
> why don't you just put the LD_LIBRARY_PATH inside your CGI scripts?
> 
> Filip
> 
> -----Original Message-----
> From: Madere, Colin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 9:23 AM
> To: 'Tomcat Users List'
> Subject: RE: CGI environment vars
> 
> 
> no no.. I'm using the CGI facility in Tomcat (see Tomcat docs).  There's a
> servlet set up to handle it already, and the CGI is getting executed but
> the
> logs show that it's getting an error loading ld.so because it can't find
> it
> (which is also the case when trying to run it in a shell without having
> LD_LIBRARY_PATH set appropriately).
> 
> > -----Original Message-----
> > From:       Filip Hanik [SMTP:[EMAIL PROTECTED]]
> > Sent:       Wednesday, February 05, 2003 11:21 AM
> > To: Tomcat Users List
> > Subject:    RE: CGI environment vars
> > 
> > how about you do it yourself, I assume that you launch your CGI script
> > using Runtime.exec
> > in that case, use the method that 
> > 
> > http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Runtime.html
> > 
> > take a look at
> > 
> > Runtime.exec(java.lang.String,java.lang.String[],java.io.File)
> > 
> > -----Original Message-----
> > From: Madere, Colin [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 05, 2003 8:44 AM
> > To: [EMAIL PROTECTED]
> > Subject: CGI environment vars
> > 
> > 
> > Tomcat 4.1.18 : UMN Mapserver CGI
> > 
> > I have a CGI which needs to see the "LD_LIBRARY_PATH" to get to shared
> > libraries to run.  However, I can't seem to get whatever shell that
> Tomcat
> > uses to run CGIs seeded with that variable.
> > 
> > I tried putting it in the "setenv.sh" which is checked for and used in
> > catalina.sh, but that doesn't seem to have any effect on CGIs.
> > 
> > Anyone have an idea?
> > 
> > Colin
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>  << File: ATT343620.txt >> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to