0

I want a console python script that will receive input on stdin and immediately write it out to stdout and stderr simultaneously. This should be unbuffered both on input and output.

How would I do this? I assume it's pretty basic, once you know the trick.

Chris R
  • 17,546
  • 23
  • 105
  • 172

1 Answers1

1

look at this

Disable output buffering

Community
  • 1
  • 1
jojo
  • 3,614
  • 1
  • 25
  • 21