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.

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.