my stdout to exe and that stdout to inside my process

Started by thomas_remkus, April 16, 2010, 01:01:56 AM

Previous topic - Next topic

thomas_remkus

Here's the thought ... I can create a section that has global:shared memory between all process instances. I'm thinking on taking my running process' stdout and pipe that to an exe on the drive. When I call that process I want to have it's stdout pipe to my running application. At that point I can detect this and populate my global:shared memory. On return of the exe I then check the global memory inside my process. I'm thinking this should have NO i/o associated which is my goal.

Thoughts?

The exe I'm running is gawk and it's performing like a champ but I don't have a lib or dll for gawk that's recent so I'm thinking of this really crazed method.

thomas_remkus

I've baked this in my head overnight and there might be some issue with doing this. Will certainly need a mutex at the very least to help ... next to build the prototype and share it on this thread.