in reply to Pipes (for interprocess communication)

In a comment to this post: output from an external program, brother merlyn gives a pretty good example on how to use pipes when you want to write to and read from the same program without having to think about deadlocks. It should easily be adaptable to other scenarios as well.

Ole C.