Could someone tell me how to implement a bi-directional pipe. I have been trying to get such a pipe with the rsh command but I get stuck when it asks for the password. popen2 (for some odd reason) does not like me reading and writing to tochild and fromchild. Thanx Mitko