Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.programmer Subject: Re: how to use pipes (was: Re: system() question) Message-ID: <5866:Mar604:22:3791@kramden.acf.nyu.edu> Date: 6 Mar 91 04:22:37 GMT References: <1991Mar2.181423.13981@csusac.csus.edu> <1991Mar3.175234.11716@csusac.csus.edu> <1991Mar3.214844.15444@csusac.csus.edu> Organization: IR Lines: 7 In article <1991Mar3.214844.15444@csusac.csus.edu> emmonsl@athena.ecs.csus.edu (L. Scott Emmons) writes: > using fork/exec/pipe: 0.0u 0.1s 0:00 35% 5+6k 0+0io 0pf+0w > using system: 0.2u 0.4s 0:00 70% 32+18k 0+4io 0pf+0w This is, of course, because you aren't waiting for the child to finish. ---Dan