I did:
Monitor;
$mode = zhbgetvar('mode');
On-Error;
$mode = '*NOCGI'
EndMon;

If zhbgetvar() API throws an error, then it is running under Non-CGI mode.

I'll be interested to know if there is an API to perform this action.

Jorge

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Friday, July 15, 2011 3:16 PM
To: Midrange-L Midrange-l
Subject: Identify where job is running

Identifying whether a program is running interactive or batch is easy enough, can get that and a bunch more from QUSRJOBI but there doesn't seem to be a code to identify if the program is running in a web (CGI) job.

Anyone know of a combination of using the BCI type with something else to be sure? Or is there another API that will give me this?


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2026 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.