<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<pre>>>On 5/21/07 1:58 PM, "Jerry Geis" <<a
 href="http://lists.centos.org/mailman/listinfo/centos">geisj at pagestation.com</a>> spake:

>><i>...
</i>>><i> 
</i>>><i> When I use a little program.
</i>>><i>                 for(count = 0; count <= 100; count += 10)
</i>>><i>                         {
</i>>><i>                         printf(stdout, "%d\n", count);
</i>>><i>                         sleep(1);
</i>>><i>                         }
</i>>><i>... 
</i>
>Try adding this after your printf():

>fflush(stdout);

>The stdio functions use buffered output, so it's likely that zenity is just
>not getting any of the output until the program has completed. By doing an
>fflush() you will force the data to be flushed from the buffer and printed,
>so that zenity can pick it up from the pipe.

>Ryan

That did it... THanks so much.

Jerry

</pre>
</body>
</html>