<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:mhammond@skippinet.com.au">mhammond@skippinet.com.au</a> wrote:<br>
<blockquote cite="mid012401c586c1$a1d63f70$0b0a0a0a@enfoldsystems.local" type="cite">
<blockquote type="cite">
<pre wrap="">if __name__ == '__main__':
child = subprocess.Popen(
['python', 'echo.py'],
</pre>
</blockquote>
<pre wrap=""><!---->
Try adding "-u" as an option to Python - this will force Python to reopen
stdout etc as unbuffered (ie, the problem is the client is buffering)
Mark
</pre>
</blockquote>
<br>
That is exactly the problem, but how can I get the text which the
buffering client prints to the screen?<br>
<br>
The C++ Code looks like:<br>
<br>
printf ("1. Run Static Tests contained in Sections 5 through
9.\n");<br>
printf ("2. Run Dynamic Tests contained in Sections 10 through
11.\n\n");<br>
printf ("Enter choice (1 or 2): ");<br>
scanf ("%d", &nTestChoice);<br>
<br>
If I use the program manually the stdout is displayed on the screen.<br>
<br>
A solution would be to change the program, but I don't have the
possibility to change it. <br>
Is there an other way?<br>
<br>
Tschau,<br>
Frank<br>
<br>
</body>
</html>