Communicating with a background process

Bruce A. Kern bak at csd-v.UUCP
Sun Nov 20 09:33:23 AEST 1988


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                         



More information about the Comp.unix.questions mailing list