×
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.
Hi all,
Have an interesting one today. I am using the QP2SHELL API to run a shell
command from an RPG CGI app, and it appears as though it is affecting my
ability to send a response to standard output that makes it back to the
client (PC app).
When I debug the program it executes everything just fine including sending
a simple response of Content-type: text/plain plus two crlf's and a single
text line stating success. But the client application receives a 500 error
from Apache. I have experienced the 500 error in cases when there wasn't a
response sent back, and I am thinking that is what's happening here.
So my theory is that standard output is being redirected with my call to
QP2SHELL to someplace else - where it is going, I have no idea.
Can anybody shed some light on this for me? Is there a way to re-route
standard out to point at Apache again? I thought I saw somebody doing an
OVRxxx type command in a CL a long time ago that addressed this, but haven't
been able to find it in the archives.
Thanks,
Aaron Bartell
http://mowyourlawn.com
As an Amazon Associate we earn from qualifying purchases.