Node.js reading 'stdout' of CGI pgm (QtmhWrStout)
Hi
I have a RPG program which sends data to 'stdout' via QtmhWrStout API (which is a part of QZHBCGI). So the data flow is
Web browser <-> HTTP Server <-> QZHBCGI ( my RPG program)
my intention is to get rid of HTTP server and use Node.js instead.
Web browser <-> Node.js <-> ???????? ( my RPG program)
I have no idea how to interact with stdout/stdin from Node.js I've tried iSh with system command, iPgm with 'regular call'. No matter how I call my program each time I got QPRINT with content. I've tried also to add QIBM_USE_DESCRIPTOR_STDIO=Y to Qp2RunPase - no effect.
Any idea how to interact with ILE 'stdout'/'stdin' On the other hand QtmhPutEnv (part of QZHBCGI) works ok. Regards Sebastian
Comments (2)
-
Account Deleted -
Account Deleted - edited description
- changed status to closed
This is not the correct forum (most likely). Try nodejs project nodejs-itoolkit](https://bitbucket.org/litmis/nodejs-itoolkit)
- Log in to comment
This is not the correct forum (most likely). Try nodejs project nodejs-itoolkit](https://bitbucket.org/litmis/nodejs-itoolkit)