C: how to redirect stderr from System-command to stdout or file?

Posted by user355926 on Stack Overflow See other posts from Stack Overflow or by user355926
Published on 2010-06-11T01:26:37Z Indexed on 2010/06/11 1:32 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

The shell command $ avrdude -c usbtiny 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 my last question but still unsolved.

© Stack Overflow or respective owner

Related posts about c

    Related posts about stdout