PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

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 
 > dbsetifile("/opt/sybase/XI/interfaces");
 > and  it worked. I set SYBASE in the script & that too
 > works. 
 > 
 > 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
 > http://username:password@host:port/cgi-bin/simquery.cgi.
 > 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
 > server?

I don't know how to do that with netscape. Apache as a SetEnv
directive for the httpd.conf file...

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com