Path: utzoo!attcan!uunet!husc6!rutgers!njin!princeton!phoenix!ssroy From: ssroy@phoenix.Princeton.EDU (Steve Scot Roy) Newsgroups: comp.unix.questions Subject: Communicating with a background process Keywords: unix,pipe,background Message-ID: <4454@phoenix.Princeton.EDU> Date: 15 Nov 88 21:35:09 GMT Organization: Princeton University, NJ Lines: 18 I was thinking of writing a front end for a particular program and there is something that I haven't been able to figure out. The program reads from stdin and writes to stdout and it is not feasable to modify it. What I want to do is run it in the background with pipes to my program which will interpret mouse clicks and keystrikes and translate them into text lines. My problem is that I cannot find how to open a *two way* communication line to a program. popen(...) claims to set up a one way pipe to another program, but I need two way communication. This seems like a fairly natural thing to do. I cannot believe that it can't be done. Steve Roy Program of Applied Mathematics Princeton University ssr@courant.princeton.edu