[Interest] Redirect stdout to a file

Scott Aron Bloom scott.bloom at onshorecs.com
Mon Jul 1 22:53:57 CEST 2013


Please don't response personally...

One has nothing to do with the other...



From: Yifei Li [mailto:yifli82 at gmail.com]
Sent: Monday, July 01, 2013 1:53 PM
To: Scott Aron Bloom
Subject: Re: [Interest] Redirect stdout to a file

I can't because I want the process continues to run even if my GUI crashes. -Yifei

On Mon, Jul 1, 2013 at 4:50 PM, Scott Aron Bloom <scott.bloom at onshorecs.com<mailto:scott.bloom at onshorecs.com>> wrote:
Just use the non-static QProcess flow...


From: interest-bounces+scott.bloom=onshorecs.com at qt-project.org<mailto:onshorecs.com at qt-project.org> [mailto:interest-bounces+scott.bloom<mailto:interest-bounces%2Bscott.bloom>=onshorecs.com at qt-project.org<mailto:onshorecs.com at qt-project.org>] On Behalf Of Yifei Li
Sent: Monday, July 01, 2013 1:31 PM
To: interest at qt-project.org<mailto:interest at qt-project.org>
Subject: [Interest] Redirect stdout to a file

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

_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130701/4acde2a0/attachment.html>


More information about the Interest mailing list