Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsb!kadie From: kadie@uiucdcsb.cs.uiuc.edu Newsgroups: net.unix Subject: Dissimilar Program Interaction? Message-ID: <19300054@uiucdcsb> Date: Tue, 30-Sep-86 19:58:00 EDT Article-I.D.: uiucdcsb.19300054 Posted: Tue Sep 30 19:58:00 1986 Date-Received: Fri, 3-Oct-86 09:34:25 EDT Lines: 27 Nf-ID: #N:uiucdcsb:19300054:000:868 Nf-From: uiucdcsb.cs.uiuc.edu!kadie Sep 30 18:58:00 1986 I need to allow a number of very dissimilar programs to interact. Each of the programs reads from standard input and writes to standard output. I imagine that I want Unix pipes connecting each of the sub-programs to an executive program. Looking through the UNIX library I found a function that does almost what I want, namely popen. As in: FILE *pstrm; pstrm = popen("cat >response","w") This will start cat running such that the executive can make stream writes (fprint) to it. The problem is that I want to both fscan and fprint with each subprocesses. An alternative function is the pipe command. It allows read and write. Unfortunately I don't know how to connect the pipe(s) to standard input and standard output of the sub-program. Also this does not permit fscan and fprint. Any advice or leads will be desperately appreciated. Carl Kadie