Path: utzoo!utgpu!watmath!clyde!mcdchg!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.questions Subject: Re: Communicating with a background process Message-ID: <6960@chinet.chi.il.us> Date: 17 Nov 88 21:35:58 GMT References: <4454@phoenix.Princeton.EDU> Reply-To: les@chinet.chi.il.us (Leslie Mikesell) Organization: Chinet - Public Access Unix Lines: 13 In article <4454@phoenix.Princeton.EDU> ssroy@phoenix.Princeton.EDU (Steve Scot Roy) writes: >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. If you have SysV you can use FIFOs (named pipes) and it can even be done using shell scripts. Use mknod filename p to create a FIFO, then redirect input/output as you would with other files. If you want a read from the FIFO to always block even if no other process currently has it open for writing, just have the reading process also open it for output (but don't write anything). Les Mikesell