inpatience

Timebox processes in case they hang

Inpatience

Timebox process, useful for processes which sometimes fail silently and then hang forever..

npm install -g inpatience

inpatience -wait 2 -process process_which_might_hang additional_args -- --moar --options

Waits -wait seconds, if nothing has been written to stdout or stderr in that time, kills the process. Each time something is written to stdout or stderr, resets the timer.