view README.txt @ 1:a4680e54c481

fix formatting
author Jeff Hammel <k0scist@gmail.com>
date Tue, 23 Aug 2016 13:57:20 -0700
parents 02d077c5627a
children d1880117acb5
line wrap: on
line source

fail
====

run a program until it fails and gather statistics

Elaborations from a favorite bash one-liner::

    I=0; while ./do_some_things.py --param $arg; do I=$((I+1)); echo Iteration ${I}; sleep 1; done

fun things to try
----------------

Russian roulette (with two chambers)::

    fail 'exit $(expr $RANDOM % 2)'

----

Jeff Hammel