in reply to Long Process Waits Until End to Display Results

Have you tried to use select (2° entry) From select (2) (system call)
select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO - synchronous I/O multiplexing
The keyword is synchronous....

Replies are listed 'Best First'.
Re: Select this! ;-)
by C_T (Scribe) on Dec 07, 2004 at 18:34 UTC
    Changing the code as follows:

    unless (open F, "-|") { open STDERR, ">&=1"; select(STDIN); $| = 1; select(STDERR); # also tried select(F) here $| = 1; exec "$command"; } while (<F>) { $buffer .= $_; $cache->set($session, [0, $buffer]); }
    Does not make any difference.

    CT

    Charles Thomas
    Madison, WI
      Try with second entry.... select RBITS,WBITS,EBITS,TIMEOUT