in reply to Re: Redirecting output
in thread Redirecting output

What suggests to you that it might be a buffering problem?