1.

Solve : c++ pipe() questions?

Answer»

I WANT write a program that forks a copy of itself. The PARENT should ask the user for an integer. The PARENT should SEND that integer through a pipe to the CHILD. The CHILD should do something with it and send it back through a pipe to the parent. The PARENT should print out the integer.

I know how to fork but I do not know how to communicate with PIPES. Please help by providing me with a good site to READ up on c++ pipes and what the code is to send and receive through pipes in c++.

Thank you

http://www.ecst.csuchico.edu/~hilzer/csci372/pdf/Chapter7.pdf from http://www.unix.com/programming/58138-c-how-use-pipe-fork-stdin-stdout-another-program.html Hope this helps!



Discussion

No Comment Found