Next: popen() - Formatted Piping Up: Process Control and Management Previous: exit()

Piping in a C program

Piping is a process where the input of one process is made the input of another. We have seen examples of this from the UNIX command line using .

We will now see how we do this from C programs.

We will have two (or more) forked processes and will communicate between them.

We must first open a pipe

UNIX allows two ways of opening a pipe.



Dave.Marshall@cm.cf.ac.uk
Wed Sep 14 10:06:31 BST 1994