R.Wieser
2024-04-20 08:01:03 UTC
Hello all,
I've written a "launcher" program which uses CreateProcess to start the
child. Both are console programs.
The thing is, the child (lets say its "more") accepts redirected input and
I've got no idea how to get the redirected input from the launcher to the
child.
I've tried a few things (inheriting StdIO handles), but cannot seem to get
it to work, nor does googeling turn anything up. :-(
So, the question : how do I allow the child to, if present, use the
redirected input the launcher gets.
Remark: this is *not* about the launcher talking to the child using pipes.
Examples about that are plenty. If the launcher gets cut off from StdInp
its fine by me.
Regards,
Rudy Wieser
I've written a "launcher" program which uses CreateProcess to start the
child. Both are console programs.
The thing is, the child (lets say its "more") accepts redirected input and
I've got no idea how to get the redirected input from the launcher to the
child.
I've tried a few things (inheriting StdIO handles), but cannot seem to get
it to work, nor does googeling turn anything up. :-(
So, the question : how do I allow the child to, if present, use the
redirected input the launcher gets.
Remark: this is *not* about the launcher talking to the child using pipes.
Examples about that are plenty. If the launcher gets cut off from StdInp
its fine by me.
Regards,
Rudy Wieser