Lab 1 Overview

Mimic the pipe operator in the shell:

ls | cat

./pipe ls cat

Two main pieces

  1. Spawning a process
  2. Piping a process (using file descriptors)

Spawning a new process

fork

exec