Connecting the output of one process to the input of another using pipe() and dup2() .
Do not just copy and paste the examples. Typing out system calls helps build muscle memory for C syntax and error handling. understanding unix linux programming molay pdf