in reply to Re: Re: Re: capture output of a daemon in a tk widget on win32
in thread capture output of a daemon in a tk widget on win32
Back to the question.
In response to your program, it doesn't really address my problem. You're simply forking another process, using pipes to communicate, and polling each end while you wait for something to do. Keeps MainLoop running while you do stuff, sure, (been there, achieved that) but my question was more than that. So, no bucket just yet! :)
I've just simplified it by removing the requirement of stderr for the time being. This leaves two remaining issues: non-blocking read, and MainLoop. Solve the first, and the second shouldn't be an issue!
My output is now (varies):
<pause for 10 seconds>read_stdout() sysread() got 9 bytes: [stdout1 ] read_stdout() sysread() got 9 bytes: [stdout2 ]
read_stdout() sysread() got 9 bytes: [stdout3 ] read_stdout() sysread() got 9 bytes: [stdout4 ] read_stdout() sysread() got 0 bytes: []
- ><iper
use japh; print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: capture output of a daemon in a tk widget on win32
by JamesNC (Chaplain) on Mar 25, 2004 at 01:53 UTC |