> Was there something wrong with Gordon's answer, or mine?
thanks for reply....
No, but stil it's not working.
I want one thread to take command get o/p and write it to pipe &
another to read it from pipe and display it, this works only for one
command and not give any o/p for second command, I have given the
source code. It must work for N number of commands
thanks,
parag
EJP - 28 Aug 2006 09:06 GMT
>>Was there something wrong with Gordon's answer, or mine?
>
> No, but stil it's not working.
After what changes?
> I want one thread to take command get o/p and write it to pipe &
> another to read it from pipe and display it
Why? Why the pipe? How about Gordon's suggestion?
> this works only for one command and not give any o/p for second command, I have given the
> source code.
probably because our Pipe_Reader source code contains no check for EOF.
It's still far more complicated than it needs to be.