× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Scott, We set this up last night and are watching the web jobs this
morning to see the effect. It almost looks like the Apache server is
changing the library list before calling the CGI application and then
changing it back after the CGI job responds. And the library list it
gets set back to is the initial list for the HTTP job. When we look at
the jobs library list it only ever shows the initial libraries but the
job log has warnings where our jobs were doing ADDLIBLE commands that
the library is already in the list except for some that we did not put
in the environment variable. Do you know if this is a correct
interpretation on our part?

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Scott Klement
Sent: Thursday, June 07, 2007 7:53 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Library list control and net.data and RPG CGI apps

Hello Nathan,

I thought the SetEnv directive would create an environment variable
that the CGI program could reference, and then possibly run code to
change the job's library list at runtime.

You're right that SetEnv is used to set an environment variable.
However, it's Apache (or, specifically, the i5/OS version of Apache)
that sets the library list.

You do not have to code anything relating to this in your CGI program,
it's done for you by the HTTP server.

But are you saying that the HTTP server uses that directive to
automatically set the job's library list, when a program in
/cgi-test/ewo is called?

Actually, in Shane's example, he used /cgi-test/ewo*, the * is a
wildcard, so any program name in /cgi-test that starts with "ewo" would
get the library list.

But, yes, it's done for you automatically...

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.