[Interest] Redirect stdout to a file

Michael Sué sue at nf.mpg.de
Tue Jul 2 09:21:00 CEST 2013


Unless you use a command-line type of program, the “normal” WINDOWS program - by policy - does not open “stdout” and “stderr”, as there is nothing to write the up-coming traffic to. So you will never have a chance to connect to them, as there is nothing to connect to, even if you program an individual solution of startDetached on your own.
 
- Michael.
 
From: interest-bounces+sue=nf.mpg.de at qt-project.org [mailto:interest-bounces+sue=nf.mpg.de at qt-project.org] On Behalf Of Yifei Li
Sent: Tuesday, July 02, 2013 4:31 AM
To: Ing. Rayner Pupo Gomez
Cc: interest at qt-project.org
Subject: Re: [Interest] Redirect stdout to a file
 
Thank you. It's good to know this trick. But I need a cross-platform solution. - Yifei
 
On Mon, Jul 1, 2013 at 7:07 PM, Ing. Rayner Pupo Gomez <rpgomez at uci.cu> wrote:
You can try on Linux with "expect", creating a config file for expect that contains a command like "command >> output.txt" then you can start the expect program detached.

_______________________________________________
Interest mailing list
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/20130702/caf9a4f4/attachment.html>


More information about the Interest mailing list