Disable buffering for tool?
Moderators: AmigoJack, bbadmin, helios, MudGuard
Disable buffering for tool?
How do I disable buffering for capturing output on tools? For example, I'm running a python script through textpad that may take several minutes or hours or days to complete, and I would like to see the output in the output window when it occurs, not when the buffer fills. How can this be accomplished? I know it can be done by sending a large amount of output to force the buffer to flush, but that's not exactly elegant.
Well, I've answered my own question a year and a half later.
Textpad cannot control it. The script in question must flush standard output when it is desired to see the output.
In my case: (python)
Textpad cannot control it. The script in question must flush standard output when it is desired to see the output.
In my case: (python)
Code: Select all
import sys
...
while 1:
...
print "current status: " + status
sys.stdout.flush()