in reply to Re: help with arrays
in thread help with arrays

Thanks to everyone for their ideas. They took care of the problem. Unfortunately, another problem has arisen. Again I would appreciate any insight into the problem. Here is where I am so far:

$ENV{ORACLE_HOME} = '/opt/OraHome9i/6iserver'; $ENV{REPORTS60_PATH} = '$ORACLE_HOME/repordmin/templates:$ORACLE_HOME/ +tools/devd em60/demo/reports'; if(&ReadParse(\%input)){ @args= ("/opt/OraHome9i/6iserver/bin/rwcli60", "report=$input{rpt}" , + "userid=rep_user/sinclair\@pmi", "server=rep60_kodiac", "destype=pri +nter", "desname=$input{desname}", "btch=$input{btch}", "subbtch=0", " +record=$input{record}"); &ProcessForm;} else{ die;} } sub ProcessForm { $retval = system("@args"); die "system failed: $?" unless $retval == 0;

The problem is thus: If I call this script "test2.pl" from the command line and pass it parameters it works fine. EX.test2.pl rpt=report.rdf desname=printername btch=50 record=0
Now if I call it from an html page as a url. EX.http://blah/blah/test2.pl?rpt=report.rdf&desname=printername&btch=50&record=0 it gives me an error and $retval=256. I don't know why it works from the command line and prints the report, but from the html page as url it doesn't. Please help a confused novice.

Prince99

Too Much is never enough...

Replies are listed 'Best First'.
Re: Re: Re: help with arrays
by suaveant (Parson) on Apr 20, 2001 at 23:57 UTC
    It is not a user issue, is it? A lot of systems run as user nobody or apache, and maye they don't have access to the program?
    Just a shot
                    - Ant
      Good thought, but not the issue apparently. The rights were a little off, but changing them did not fix it. The error_log says:
      malformed header from script. Bad header=bwcinvoice.rdf: /blah/blah/blah/test2.pl
      I wish i could figure this out. The part that still gets me is it runs from the command line.
      Prince99

      Too Much is never enough...
        Apparently, your script does not produce proper HTTP headers, such as: Content-type: text/html