> >>Are you sure that the perl script is flushing the output every second? > >> > > It does when I call the command from the shell. Also, Perl flushes > > whenever there is a \n. I have one at the end of each line. > > > > There are some strange things happening when stdout is a tty > (interactive terminal). Have you tried flushing stdout manually from the > perl script? > > PS. Please reply under the quoted message. It is really much easier to read. >
Perl isn't really the issue here. Output is buffered with any command. I tried emerge -puD world. There was no buffering when I was using regular popen. I am waiting on the stdout of the process with a gtk.input_add. With popen and any process, the input_add handler is called as each line comes out. However, with Popen4 (which BTW does exactly what I want in terms of child pid and stdout/err) all output from any command is buffered until the command has finished. Very odd. _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
