title: C: how to redirect stderr from System-command to stdout or file?
body: <p>The shell command <code>$ avrdude -c usbtiny</code> outputs text to stderr. I cannot read it with commmands such as head-less-more cos it is not stdout. I want the text to stdout or to a file. How can I do it in C? I have tried to solve the problem by <a href="https://stackoverflow.com/questions/2982516/c-stdin-and-std-errs">my last question</a> but still unsolved. </p>