Path: utzoo!attcan!uunet!swlabs!csd-v!bak From: bak@csd-v.UUCP (Bruce A. Kern) Newsgroups: comp.unix.questions Subject: Re: Communicating with a background process Keywords: unix,pipe,background Message-ID: <179@csd-v.UUCP> Date: 19 Nov 88 23:33:23 GMT References: <4454@phoenix.Princeton.EDU> Reply-To: bak@csd-v.UUCP (000-Bruce A. Kern) Organization: Computer Systems Design, Sandy Hook, Ct. Lines: 13 The system calls which will accomplish what you want are pipe(2) and dup(2). Two calls to pipe are required, one to open a read channel and one for a write channel. The dup calls allow the file descriptors to be remapped onto 0 and 1 ( standard i/o ). See Rochkind's excellent book "Advanced Unix Programming" for details on this procedure. If you need further examples contact me via E-mail. -- Bruce A. Kern 1-203-270-0399 Computer Systems Design Voice: 730 - 1700 Mon. thru Fri. 29 High Rock Road Data: All other times Sandy Hook, Ct. 06482