Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to use svrmgrl commands in Perl CGI

Re: How to use svrmgrl commands in Perl CGI

From: Tom Phoenix <rootbeer_at_redcat.com>
Date: Mon, 31 May 1999 20:16:28 -0700
Message-ID: <Pine.GSO.4.02A.9905312013330.19186-100000@user2.teleport.com>


On Tue, 1 Jun 1999, James Liang wrote:

> This script runs correctly from command-line, but if we try to run it
> as CGI,

> It seems that svrmgrl cannot get the input. How can I make it work as
> a CGI program ?
>
> We are using Perl 5.005_02 for irix-n32, Oracle 7.3.4, and Netscape
> SuiteSpot Enterprise server 3.5.1 on SGI Irix 6.2. The web server runs as
> nobody (we've added nobody to DBA group temporarily for the testing).

I've got a hunch that user 'nobody' still doesn't have proper authority to get the data you need. If you're able to 'su nobody' and run the program, you may be able to find out whether this is the case. You may need to make a set-uid program in order to get this to work; see the perlsec manpage.

When you're having trouble with a CGI program in Perl, you should first look at the please-don't-be-offended-by-the-name Idiot's Guide to solving such problems. It's available on CPAN.

   http://www.perl.com/CPAN/

   http://www.perl.org/CPAN/

   http://www.perl.org/CPAN/doc/FAQs/cgi/idiots-guide.html

   http://www.perl.org/CPAN/doc/manual/html/pod/


Hope this helps!

--

Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/


Received on Mon May 31 1999 - 22:16:28 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US