I am trying to pipe multiple processes. I wrote functions that take in the file descriptors and execute the command in the child processes. The functions seemed to work fine