A script designed to stress SSHKit by outputting on stdout
and stderr
with and without buffering, with and without flushing it's outputs to try and find a reliable solution for capturing outputs from programs which are badly behaved.
$ ruby ./stdouterr.rb --unbuffered --succeed
0. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
0. Proin nec tristique nisl.
1. Pellentesque venenatis magna malesuada aliquam posuere.
2. Ut interdum ornare massa.
1. Suspendisse ultrices, mauris vitae lobortis tempus, ipsum mi facilisis purus, vel auctor purus nisl sit amet eros.
2. Aliquam nec varius ante.
succeeding
--buffered / --unbuffered Sync stdout and stderr?
--fail / --succeed Exit with `1' or `0'
--flush In case of --buffered, flush every line after writing?