I have written a little application that works fine... it prints all kinds of useful things to the terminal using printf()...
but I cannot seem to redirect output!
It seems like it may be something in qt, but I can't find it.
If I write a simple "hello world" app using printf then
a.out > file
works fine, with "hello world" in the file called "file".
but the full-blown application never writes anything to the redirected file, no matter what I do. I've seen this before with other unix apps where output is visible when normally run, but redirected output never gets to the file.
Is there some environment variable or include flag? It seems like if I don't use Qt then redirection works, but something in some qt file does something to stdout so that I cannot capture it.
Bookmarks