Skip to content
ddollar edited this page Jun 1, 2012 · 13 revisions

If you are not seeing any output from your program, there is a likely chance that it is buffering stdout. Manu languages such as Ruby and Python buffer stdout by default. To disable this behavior, add this code as early as possible in your program:

Ruby

Add $stdout.sync = true to your code, as high as possible in the execution path.

Python

Set PYTHONUNBUFFERED=true in the environment.

Clone this wiki locally