I would like to check my program memory using almost automated tools (I don't know how to use gdb yet), and so I ended up working with valgrind.
However, I would like to put the pipe as input valgrind; that is, I would like to indicate the following:
>cat file.h | ./prog
I tried to do
>valgrind `cat file.h | ./prog`
without success.
I also tried to create a script file where I put the whole command and then passed it to valgrind without any success.
source share