title: Replace pipe-shellscript with C-program
body: <p>I have the following Bash script:</p>
  
  <p><code>cat | command1 | command2 | command3</code></p>
  
  <p>The commands never change.</p>
  
  <p>For performance reasons, I want to replace it with a small C-program, that runs the commands and creates and assings the pipes accordingly.</p>
  
  <p>Is there a way to do that in C?</p>