1
Programming / [Classic Rexx] How can one pipe data to application?
« on: June 10, 2025, 09:15:44 pm »
I have an urgent need to understand how to redirect instructions to a VIO/CLI application (or several) that take commands via stdin and output data to stdout. Depending on the input it exit or require more input.
I've looked at a code sample for ePDF (Print2PS) but it is designed for the oposite situation, and examples for rxu, C/C++ on OS/2 or whatever appear to be unavailable.
Yes, one can write instructions to a file and run it with something like
I use that approach now, but it is ugly, slow etc.
What I need can be described as redirection of stdin and stdout through the use of a (possibly named) pipe.
I've looked at a code sample for ePDF (Print2PS) but it is designed for the oposite situation, and examples for rxu, C/C++ on OS/2 or whatever appear to be unavailable.
Yes, one can write instructions to a file and run it with something like
Code: [Select]
app.exe < "file.txt"|RXQUEUE
but then one must know the reply in advance or ensure to exit (even though one would like to continue in that session).I use that approach now, but it is ugly, slow etc.
What I need can be described as redirection of stdin and stdout through the use of a (possibly named) pipe.