Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!n.sp.cs.cmu.edu!flc From: flc@n.sp.cs.cmu.edu (Fred Christianson) Newsgroups: comp.lang.c Subject: Re: help on interprocess communication Message-ID: <8052@pt.cs.cmu.edu> Date: 19 Feb 90 14:24:09 GMT References: <6456@cps3xx.UUCP> Distribution: usa Organization: Carnegie-Mellon University, CS/RI Lines: 23 In article <6456@cps3xx.UUCP> bruey@cpsin2.cps.msu.edu () writes: > >Can any of you brainy netlanders give me a hint why this >doesn't work? ... > write(filedes[1],buf,14); > if(fork()) > { > read(filedes[1],buf1,14); ^ | 0 --- > printf("in second %s \n",buf1); > } > } > >} filedes[1] is for writing and filedes[0] is for reading. I haven't used pipes for a while, but that's what my man page says. ---- Fred