HP3000-L Archives

August 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Carl McNamee <[log in to unmask]>
Reply To:
Carl McNamee <[log in to unmask]>
Date:
Fri, 10 Aug 2001 10:01:00 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (57 lines)
An update!

Here is what we are currently thinking.  Apache will not allow the process
to write to any directory above /APACHE/PUB/htdocs, and rightly so.
However, it appears that the callci posix command needs to build a temporary
file and it uses the users home group as part of the filename.

We proved this by changing the home group for WWW.APACHE from PUB to TEMP.
The error then show a redirection to filename.TEMP.APACHE.  Just for giggles
we then changed the user for the job stream and the Apache user to
MANAGER.SYS and the directory callci was redirecting to became
filename.PUB.SYS.  Though all of these changes the script worked correctly
from the command line but gave us the error below when run via Apache.

Any thoughts on how to change this behavior?  Maybe I should also explain
what we are trying to accomplish!  Hmmm...  That might make too much sense.
But on with the exercise.  :)

Our goal is to use Apache to call a cgi script that can accept parameters,
pass them to the CI as variables and then use STREAMX to stream a job.
STREAMX will pick up the preset variables and substitute them in the job
stream at submission time.

Thoughts?  Comments?  Criticism?

Carl McNamee
Systems Administrator
Billing Concepts
(210) 949-7282

> -----Original Message-----
> From: David Dobbins
> Sent: Friday, August 10, 2001 9:24 AM
> To:   Carl McNamee
> Subject:      Apache, Perl, CallCI & You
>
> In a perl program I have this statement:
>
> system("callci 'setvar parm1, 1'");
>
> This works great when I run it from the shell.  When I try to run it under
> from Apache, however, I get the following output:
>
> setvar parm1, 1 >UB9.PUB.SYS ^Unexpected character found in number. (CIERR
> 9810)
>
> and the following pops up in Apache's error_log:
>
> callci: error opening redirection file
>
> I can run the script successfully as the same user that httpd runs under.
>
> Any ideas what is happening (or why)?

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2