title: How to put a pipe as input for valgrind?
body: <p>I would like to check my program memory using almost automated tools (I'm not good at gdb yet), and so I ended up using valgrind.</p>
  
  <p>However, I would like to put a pipe as the input of valgrind; i.e. I would like to put the following:</p>
  
  <pre><code> &gt;cat file.h | ./prog 
  </code></pre>
  
  <p>I tried to make a </p>
  
  <pre><code> &gt;valgrind `cat file.h | ./prog`
  </code></pre>
  
  <p>without success.</p>
  
  <p>I also tried to make a script file where I put the whole command, and then pass it to valgrind, with no more success.</p>