in reply to Nonblocking commands in Windows

It sounds like you are suffering from buffering.

You may also want to check out Synchronizing STDERR and STDOUT.

     "An undefined problem has an infinite number of solutions." - Robert A. Humphrey         "If you're not part of the solution, you're part of the precipitate." - Henry J. Tillman