can't redirect stdout?!
OK, so with the normal X11 driver, you can no longer redirect stdout from commandline apps under Wine; the output just vanishes if you try to send it to a file. That's rather unacceptable dain bramage, if you ask me. - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
Dan Kegel wrote:
OK, so with the normal X11 driver, you can no longer redirect stdout from commandline apps under Wine; the output just vanishes if you try to send it to a file.
That's rather unacceptable dain bramage, if you ask me. - Dan
Yes what is going on with this thing? Can one specify a TTY display driver PER APPLICATION so consol apps will not run with X11 driver? (I guess I can manually list all these applications) if yes on the first part What happens if a GUI app spawns a consol app will that work 2?
On July 23, 2003 12:43 am, Boaz Harrosh wrote:
Dan Kegel wrote:
OK, so with the normal X11 driver, you can no longer redirect stdout from commandline apps under Wine; the output just vanishes if you try to send it to a file.
That's rather unacceptable dain bramage, if you ask me. - Dan
Yes what is going on with this thing? Can one specify a TTY display driver PER APPLICATION so consol apps will not run with X11 driver? (I guess I can manually list all these applications)
(This gets confusing) That doesn't really matter. Even with the ttydrv stdout disappears and cannot be redirected. Except it depends upon the terminal!!! Under a real terminal (whatever you want to call it; what I get when I press Ctrl+Alt+F1 and log in) it is OK. I have just discovered that under a true xterm it is OK. However it disappears under whatever virtual terminal KDE gives you.
if yes on the first part What happens if a GUI app spawns a consol app will that work 2?
-- Bill Medland ACCPAC International, Inc. medbi01(a)accpac.com Corporate: www.accpac.com Hosted Services: www.accpaconline.com
Dan Kegel wrote:
OK, so with the normal X11 driver, you can no longer redirect stdout from commandline apps under Wine; the output just vanishes if you try to send it to a file. it works just fine here (at least for simple programs). does your program involves the creation of a child process, which actually does this output (this may be indeed broken) A+
-- Eric Pouech
Eric Pouech wrote:
Dan Kegel wrote:
OK, so with the normal X11 driver, you can no longer redirect stdout from commandline apps under Wine; the output just vanishes if you try to send it to a file.
it works just fine here (at least for simple programs). does your program involves the creation of a child process, which actually does this output (this may be indeed broken)
Not sure. It's ss.exe from MS Source Safe. Next time I try it I'll check for child processes. - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
Dan Kegel wrote:
Eric Pouech wrote:
Dan Kegel wrote:
OK, so with the normal X11 driver, you can no longer redirect stdout from commandline apps under Wine; the output just vanishes if you try to send it to a file.
it works just fine here (at least for simple programs). does your program involves the creation of a child process, which actually does this output (this may be indeed broken)
Not sure. It's ss.exe from MS Source Safe. Next time I try it I'll check for child processes.
you could also try this patch to see if this helps A+ -- Eric Pouech Index: scheduler/process.c =================================================================== RCS file: /home/cvs/cvsroot/wine/wine/scheduler/process.c,v retrieving revision 1.225 diff -u -r1.225 process.c --- scheduler/process.c 3 Jul 2003 18:23:10 -0000 1.225 +++ scheduler/process.c 12 Aug 2003 19:33:12 -0000 @@ -329,7 +329,10 @@ /* Create the process heap */ current_process.heap = HeapCreate( HEAP_GROWABLE, 0, 0 ); - if (info_size == 0) + if (main_create_flags == 0 && + process_pmts.hStdInput == 0 && + process_pmts.hStdOutput == 0 && + process_pmts.hStdError == 0) { /* This is wine specific: we have no parent (we're started from unix) * so, create a simple console with bare handles to unix stdio
participants (4)
-
Bill Medland -
Boaz Harrosh -
Dan Kegel -
Eric Pouech