in reply to Re^7: Long Process Waits Until End to Display Results
in thread Long Process Waits Until End to Display Results

Close all file descriptors. That either means calling close on STDIN, STDOUT and STDERR (or opening them to files) or else launching a new process with all of those redirected.

You could have found that at this FAQ entry.

  • Comment on Re^8: Long Process Waits Until End to Display Results