Subject: Implement two-way interactive pipes using C ?
Message-ID: <BuMGs0.ABx@watserv1.uwaterloo.ca>
Keywords: Interactive pipes, parent and child communication
Organization: University of Waterloo
Date: Tue, 15 Sep 1992 13:43:11 GMT
Lines: 214
Hi, there:
I have some problems with the interactive (bidirectional) pipes.
The attched program is an interactive (two-way) pipe test program, which is from the Book: "Advanced UNIX Programming" (pg. 151-153) by Marc J. Rochkind. I tried it several times. It does not work on HP (It works on SUN). Is there anybody who can give me some hints on how to make this program work on HP workstation, or tell me other way to implement two-way interactive pipes ? By two-way interactive pipes I mean you send a message to the child through pipe and receive a result from child through pipe
, then send other message to the child and wait for other result; ...., continue this process until child receives message "quit".
Here child process must be a standalone executable program (no source avaiable) like "ed" in the Unix.
Or is any body knowling author's email address so I can contact author regarding this program ?
Your help is greatly apprecited!
Please send reply to me in the email address: wwu@bnr.ca