[Interest] Redirect stdout to a file

Guido Seifert wargand at gmx.de
Mon Jul 1 22:42:06 CEST 2013


If it is only Linux you could use dup2. 

Windows? No idea.

Guido


On Mon, 1 Jul 2013 16:31:19 -0400
Yifei Li <yifli82 at gmail.com> wrote:

> Hi folks,
> 
> I know this can be done using QProcess::setStandardOutputFile.
> 
> However, I need to start my process using the static function
> startDetached, and still want to be able to redirect its stdout/stderr to
> another file.
> 
> Any suggestions?
> 
> Thanks,
> 
> Yifei



More information about the Interest mailing list