in reply to Replace filename with pipe in program argument?

even worse: is it really related to this site? I thought it was about Perl... :-/

but i would suggest: change the C program to output to plain old STDOUT if you want to catch the output in a pipe ( for instance with a normal printf)

--
to ask a question is a moment of shame
to remain ignorant is a lifelong shame