× 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.




On 2013-01-18, at 9:38 AM, rpg400-l-request@xxxxxxxxxxxx wrote:

Job user for a CGI program is QTMHHTP1, not QTMHHTTP. Even with the UserID
directive used, I think it would remain as QTMHHTP1, although the Current
User would be the specified value.

The subsystem in which the job is running would certainly be QHTTPSVR.
Also, as an absolute confirmation, you could use QWVRCSTK to go back up the
library list to find out what program called your CGI program and determine
if it's the appropriate CGI module (I forget what it's called - I think
it's QTMHCGI).

In fact, Jon, you could probably have a simple procedure called isWebJob()
which calls QWVRCSTK and then determines the *first* procedure in the call
stack, to see if it's QTMHCGI. Easy enough to do, and return a boolean...

See that word in the subject Rory "easy" <grin> - I don't think this qualifies and I don't think it always works.

I've worked with several sites where the subsystem is not QHTTPSVR for one. Second problem is that I don't think QTHMHCGI is always used. I doubt Websphere would use it - although I don't know for sure. What about tools like Icebreak that supply their own server and don't use Apache? And I think that Lansa's aXes uses its own stuff too - again not sure.

The point I was trying to make was that since the system does not supply a definitive "flag" as it does with batch/interactive then there is no easy and guaranteed way of detecting a browser job that I have been able to discover.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.