Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: Help! SybPerl script doesn't run as CGI
Date: Oct 1 1999 6:37PM
Pradeep Bhaskaran writes:
> --- Pradeep Bhaskaran wrote:
> > *******
> > failure: trying to GET /cgi-bin/simquery.cgi,
> > cgi-parse-output reports: the CGI prog
> > ram /pfact/ns-public/cgi-bin/sysquery.cgi did not
> > produce a valid header (name without value: got line
> > "
> > could not open interface file.")
> > *******
> I used
> and it worked. I set SYBASE in the script & that too
> However the SYBASE env varible is set and is correct
> for the user as whom the cgi script runs. But when I
> print it in the script it says "trying to access
> uninitalized variable". I even tried running the
> script explicitly specifying the user
> In both cases I can see the script running when I use
> ps -fu username.
Yes - but when that script is launched it doesn't first read the
.cshrc or .profile files.
> So I guess my SYBASE env variable is the problem. But
> even though it is set I need to set it again in the
> script. I'd like to know how I can set it in the
> server cofiguration files in Netscape Enterprise
I don't know how to do that with netscape. Apache as a SetEnv
directive for the httpd.conf file...
Michael Peppler -||- Data Migrations Inc.
firstname.lastname@example.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: email@example.com