Thanks a lot, Nate. I'll just have to familiarize myself with what strace is doing. Somehow the shell looks like it's doing a little bit more than your typical Unix Programming pipes demo program. Or is strace always so "thorough." Olwe --- Nate Straz <nate at refried.org> wrote: > On Tue, Jan 24, 2006 at 12:18:58PM -0800, Olwe > Bottorff wrote: > > If I use pipes at the command line in a shell > > > > >ls | grep myfile > > > > is the underlying c code in ls and grep using > named > > pipes, fifo, or something much more mysterious? > > fifo, i.e. an un-named pipe. If you run it with > strace like so: > > strace -f /bin/sh -c 'ls | grep myfile' 2>&1 | less > > you should see that the shell calls pipe() and dups > it to stdin and > stdout before starting ls and grep. > > Nate > > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > tclug-list at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-list > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com